You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Japanese translations and fix heading anchors for documentation (#1084)
This PR contains comprehensive updates to Japanese translations across
the Vapor documentation, along with fixes for heading anchors to ensure
proper cross-language navigation.
## Summary of changes
### 1. Translation updates (27 files)
- Updated Japanese translations to match the latest English
documentation
- Improved translation quality and consistency across all sections
- Fixed typos and grammatical errors (e.g., 'ミッドウェア' → 'ミドルウェア')
- Updated technical terms and code examples to match English version
### 2. Heading anchor fixes
- Added explicit anchors to Japanese headings to match English
auto-generated anchors
- Removed unnecessary anchors from pure English headings in Japanese
files
- Ensured all heading anchors match between language versions for proper
navigation
### 3. Structural alignment
- Removed "Stack Traces" section from `errors.ja.md` to match English
structure
- Updated routing parameter syntax (`.get` → `.req.parameters.get`)
- Fixed method parameter names (e.g., `type:` → `redirectType:`)
## Sections updated
- **Getting Started**: hello-world, folder-structure, spm, xcode
- **Basics**: async, client, content, environment, errors, logging,
routing, validation, controllers
- **Fluent**: overview, migration, advanced, model, query, relations,
schema
- **Install**: linux, macos
- **Leaf**: getting-started, overview, custom-tags
- **Security**: passwords, authentication, crypto
- **Advanced**: server, sessions, testing, tracing
- **Deploy**: systemd, digital-ocean, heroku
- **Other**: index, contributing, upgrading, redis/sessions
## Testing
- All Playwright cross-language navigation tests pass
- Manual verification of translations and heading anchors
- No changes to English documentation or non-documentation files
## Commits included
27 commits updating translations + 1 commit fixing heading anchors
(total: 28 commits)
---------
Co-authored-by: Claude <noreply@anthropic.com>
### 古い API と新しい API の使用 {#working-with-old-and-new-apis}
75
75
76
76
まだ `async`/`await` バージョンを提供していない API に遭遇した場合は、`EventLoopFuture` を返す関数に `.get()` を呼び出して変換することができます。
77
77
@@ -108,7 +108,7 @@ let futureString: EventLoopFuture<String> = promise.futureResult
108
108
109
109
に変換できます。
110
110
111
-
## `EventLoopFuture`
111
+
## `EventLoopFuture` {#eventloopfutures}
112
112
113
113
Vapor のいくつかの API が一般的な `EventLoopFuture` タイプを期待したり返したりすることに気づいたかもしれません。もしこれが futures について初めて聞いたのであれば、最初は少し混乱するかもしれません。しかし心配しないでください、このガイドは彼らの強力な API を利用する方法をお見せします。
114
114
@@ -121,7 +121,7 @@ Vapor のいくつかの API が一般的な `EventLoopFuture` タイプを期
121
121
122
122
フューチャーは、コールバックベースの非同期 API への代替手段です。フューチャーは、単純なクロージャではできない方法で連鎖させたり変換したりすることができます。
Copy file name to clipboardExpand all lines: docs/basics/client.ja.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# クライアント
1
+
# クライアント {#client}
2
2
3
3
Vapor のクライアント API では、外部のリソースに対して HTTP 通信を行うことができます。これは [async-http-client](https://github.com/swift-server/async-http-client) に基づいており、[コンテンツ](content.ja.md) API と統合されています。
0 commit comments