summaryrefslogtreecommitdiff
path: root/website/src/docs/features/japanese-conversion.md
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-06-12 15:42:51 +0900
committerSho Sakuma <me@m1sk9.dev>2026-06-12 15:42:51 +0900
commit8326b6a7619fd9e4fb6a640d01c4bf0c6194dc81 (patch)
tree5a11035b136b216f2033d78a1e4d6b6138c18772 /website/src/docs/features/japanese-conversion.md
parent043e202b1cbedad69d5521a83e791c106b49b10f (diff)
downloadLunaticChat-8326b6a7619fd9e4fb6a640d01c4bf0c6194dc81.tar.gz
LunaticChat-8326b6a7619fd9e4fb6a640d01c4bf0c6194dc81.tar.bz2
LunaticChat-8326b6a7619fd9e4fb6a640d01c4bf0c6194dc81.zip
docs(website): make English the default locale
Swap the website default locale from Japanese to English. English now lives at the site root (/), and Japanese moves under /ja/. Update locale config, nav/sidebar links, internal doc links, and asset relative paths accordingly. Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'website/src/docs/features/japanese-conversion.md')
-rw-r--r--website/src/docs/features/japanese-conversion.md68
1 files changed, 34 insertions, 34 deletions
diff --git a/website/src/docs/features/japanese-conversion.md b/website/src/docs/features/japanese-conversion.md
index e5e751b..3bcd52b 100644
--- a/website/src/docs/features/japanese-conversion.md
+++ b/website/src/docs/features/japanese-conversion.md
@@ -2,61 +2,61 @@
layout: doc
---
-# ローマ字変換
+# Japanese Conversion
-ローマ字で入力したチャットメッセージを自動的に日本語に変換します.この機能を利用するには `config.yml` で `features.japaneseConversion.enabled` を `true` に設定してください.
+Automatically converts chat messages typed in romaji into Japanese. To use this feature, set `features.japaneseConversion.enabled` to `true` in `config.yml`.
-## 変換の仕組み
+## How Conversion Works
-変換は2段階で行われます.
+Conversion is performed in two stages.
-1. **ローマ字 → ひらがな**: プラグイン内蔵の Trie ベースの変換エンジンでローマ字をひらがなに変換します
-2. **ひらがな → 漢字/カナ**: Google IME API を使用してひらがなを自然な日本語に変換します
+1. **Romaji to Hiragana**: The plugin's built-in Trie-based conversion engine converts romaji to hiragana
+2. **Hiragana to Kanji/Katakana**: The Google IME API converts hiragana into natural Japanese
-### 変換例
+### Conversion Example
```
-入力: konnichiha sekai
-変換1: こんにちは せかい
-変換2: こんにちは 世界
+Input: konnichiha sekai
+Stage 1: こんにちは せかい
+Stage 2: こんにちは 世界
```
-## 変換対象
+## Conversion Targets
-- 通常チャット
-- ダイレクトメッセージ (`/tell`, `/reply`)
-- チャンネルチャット
+- Normal chat
+- Direct messages (`/tell`, `/reply`)
+- Channel chat
-入力が有効なローマ字でない場合 (英単語などが含まれる場合),変換は行われずそのまま送信されます.
+If the input is not valid romaji (e.g., contains English words), no conversion is performed and the message is sent as-is.
-## プレイヤー設定
+## Player Settings
-プレイヤーは個別に変換のオン/オフを切り替えられます.
+Players can individually toggle conversion on or off.
```
-/lc settings japanese on # 変換を有効化
-/lc settings japanese off # 変換を無効化
+/lc settings japanese on # Enable conversion
+/lc settings japanese off # Disable conversion
```
-## キャッシュ
+## Cache
-変換結果は単語単位でキャッシュされ,同じ単語の再変換時には API を呼び出さずにキャッシュから取得します.キャッシュは JSON ファイルとしてディスクに定期保存されます.
+Conversion results are cached per word. When the same word is converted again, the result is retrieved from cache instead of calling the API. The cache is periodically saved to disk as a JSON file.
-| 設定キー | デフォルト | 説明 |
-|----------|-----------|------|
-| `cache.maxEntries` | `500` | キャッシュの最大エントリ数 |
-| `cache.saveIntervalSeconds` | `300` | ディスク保存の間隔 (秒) |
-| `cache.filePath` | `"conversion_cache.json"` | キャッシュファイルのパス |
+| Setting Key | Default | Description |
+|-------------|---------|-------------|
+| `cache.maxEntries` | `500` | Maximum number of cache entries |
+| `cache.saveIntervalSeconds` | `300` | Interval for saving to disk (seconds) |
+| `cache.filePath` | `"conversion_cache.json"` | Path to the cache file |
-キャッシュが上限に達すると,古いエントリの10%が自動的に削除されます.
+When the cache reaches its limit, the oldest 10% of entries are automatically removed.
-## API 設定
+## API Settings
-Google IME API への接続に関する設定です.
+Settings related to the connection to the Google IME API.
-| 設定キー | デフォルト | 説明 |
-|----------|-----------|------|
-| `api.timeout` | `3000` | リクエストタイムアウト (ミリ秒) |
-| `api.retryAttempts` | `2` | 失敗時のリトライ回数 |
+| Setting Key | Default | Description |
+|-------------|---------|-------------|
+| `api.timeout` | `3000` | Request timeout (milliseconds) |
+| `api.retryAttempts` | `2` | Number of retry attempts on failure |
-API がタイムアウトまたは失敗した場合,ひらがなのまま送信されます.
+If the API times out or fails, the message is sent in hiragana as-is.