docs(development): list all four locale files in i18n docs

This commit is contained in:
Yue-Sui committed 2026-08-26 12:12:24 +08:00
1 parent 4c3452292d
commit d8b789f6d7
4 files changed
+13 -5

No files matched your search

@@ -72,7 +72,9 @@ docs: update installation guide
添加或修改 UI 文本时,请同时更新:
- `src/i18n/locales/zh-CN.json` — 简体中文
- `src/i18n/locales/zh-TW.json` — 繁體中文
- `src/i18n/locales/en.json` — English
- `src/i18n/locales/ko.json` — 한국어
## 许可证
+3 -1
View File
@@ -172,9 +172,11 @@ const sessionId = await invoke<string>('create_ssh_session', {
界面文案使用 `react-i18next`,语言包位于:
- `src/i18n/locales/zh-CN.json`
- `src/i18n/locales/zh-TW.json`
- `src/i18n/locales/en.json`
- `src/i18n/locales/ko.json`
新增或修改用户可见文本时,应同时更新两个 locale 文件。
新增或修改用户可见文本时,应同时更新所有 locale 文件;提交前运行 `pnpm i18n:check` 校验 JSON 格式。
## UI 组件约定
@@ -67,10 +67,12 @@ docs: update installation guide
## Internationalization
When adding or modifying UI text, update both:
When adding or modifying UI text, update all:
- `src/i18n/locales/zh-CN.json`
- `src/i18n/locales/en.json`
- `src/i18n/locales/zh-CN.json` — Simplified Chinese
- `src/i18n/locales/zh-TW.json` — Traditional Chinese
- `src/i18n/locales/en.json` — English
- `src/i18n/locales/ko.json` — Korean
## License
@@ -158,9 +158,11 @@ Together these files define the full user flow through settings state, Tauri com
User-facing UI text uses `react-i18next`. Locale files are in:
- `src/i18n/locales/zh-CN.json`
- `src/i18n/locales/zh-TW.json`
- `src/i18n/locales/en.json`
- `src/i18n/locales/ko.json`
Whenever you add or change visible UI text, update both locale files.
When adding or modifying user-visible text, update all locale files, and run `pnpm i18n:check` before committing to validate the JSON format.
## UI component conventions