@laraveladmin/dsh-stay-awake 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # 变更记录 · Changelog
2
2
 
3
+ ## 0.4.0 — 2026-12-03
4
+
5
+ ### 新功能:18 种语言
6
+
7
+ - 界面新增 **15 种语言**:日本語、한국어、Deutsch、Español、Français、Italiano、Português、Русский、
8
+ Nederlands、Polski、Türkçe、हिन्दी、Bahasa Indonesia、Tiếng Việt、العربية;连同原有简体中文、繁體中文、
9
+ English 共 **18 种**。
10
+ - 其中 `ja/es/fr/de/ru/pt` 是 DSH 自带语言,切换即完整生效;其余 9 种通过 `ctx.locale.addLanguage`
11
+ 贡献语言项(繁中回退简中,其余回退英文),插件文案完整翻译、DSH 其余界面按回退链显示。
12
+ - 翻译源改为 `i18n/<locale>.json`(一语言一文件),新增 `scripts/build-i18n.mjs` 生成内嵌字典与
13
+ `locale/<locale>.json`;`npm run i18n` 生成,`npm test` 校验同步与键集合一致。
14
+ - 新增 5 项 i18n 测试(键集合、标签唯一性、回退链、拉丁语系无 CJK 残留、生成同步、内嵌与贡献列表),
15
+ 单测 120 → **125 全绿**。
16
+ - 说明:翻译为 AI 初译,未经过母语者审校;README 中英已注明并欢迎社区 PR 修正。
17
+
18
+
3
19
  ## 0.3.5 — 2026-12-03
4
20
 
5
21
  ### 修复
package/README.en.md CHANGED
@@ -264,10 +264,10 @@ systemd-inhibit --list
264
264
 
265
265
  ## Internationalization
266
266
 
267
- - The indicator and panel follow the active DSH locale with three complete dictionaries: **Simplified Chinese, Traditional Chinese and English**; other locales fall back to English.
268
- - DSH ships Simplified Chinese only, so the plugin registers 「繁體中文」 through `ctx.locale.addLanguage` (id `zh-Hant`, falling back to `zh`): plugin copy becomes fully Traditional while the rest of the GUI falls back to Simplified and stays readable.
269
- - The plugin manager title and description are localized as well (`locale/zh.json`, `locale/zh-Hant.json`, `locale/en.json`).
270
- - Repository documentation: [简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) / [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md).
267
+ - The indicator, the panel and the plugin-manager copy follow the active DSH locale and ship **18 languages**: Simplified Chinese, Traditional Chinese, English, Japanese, Korean, German, Spanish, French, Italian, Portuguese, Russian, Dutch, Polish, Turkish, Hindi, Indonesian, Vietnamese and Arabic.
268
+ - `zh / en / ja / es / fr / de / ru / pt` are DSH's own locales, so they apply completely. `zh-Hant / ko / it / nl / pl / tr / hi / id / vi / ar` are **contributed** by the plugin through `ctx.locale.addLanguage` (Traditional Chinese falls back to Simplified, the rest to English): the plugin's copy is fully translated while the rest of the GUI follows the fallback chain.
269
+ - Translations live in `i18n/<locale>.json` (one file per language); `npm run i18n` generates the embedded dictionaries and `locale/<locale>.json`, and `npm test` enforces an identical key set, no empty values, no CJK leftovers in Latin-script locales, and that the generated bundle matches the sources.
270
+ - **Translations are AI-produced first drafts**, not reviewed by native speakers; corrections via a PR to the matching `i18n/<locale>.json` (then `npm run i18n`) are welcome.
271
271
 
272
272
  ## Development
273
273
 
package/README.md CHANGED
@@ -267,10 +267,10 @@ systemd-inhibit --list
267
267
 
268
268
  ## 多语言
269
269
 
270
- - 状态栏指示器与弹层跟随 DSH 当前语言,内置**简体中文、繁體中文、英文**三套完整字典;其余语言回退到英文。
271
- - DSH 本身只内置简体中文,因此插件通过 `ctx.locale.addLanguage` 注册了「繁體中文」(id `zh-Hant`,回退到 `zh`):选择它之后插件文案是完整繁体,DSH 其余界面回退简体,仍然可读。
272
- - 插件管理器中的标题与说明同样提供三种语言(`locale/zh.json`、`locale/zh-Hant.json`、`locale/en.json`)。
273
- - 仓库文档:[简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) / [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md)。
270
+ - 状态栏指示器、弹层与插件管理器文案跟随 DSH 当前语言,内置 **18 种语言**:简体中文、繁體中文、English、日本語、한국어、Deutsch、Español、Français、Italiano、Português、Русский、Nederlands、Polski、Türkçe、हिन्दी、Bahasa Indonesia、Tiếng Việt、العربية。
271
+ - 其中 `zh / en / ja / es / fr / de / ru / pt` 是 DSH 自带语言,切换即完整生效;`zh-Hant / ko / it / nl / pl / tr / hi / id / vi / ar` 由插件通过 `ctx.locale.addLanguage` **贡献**到语言列表(回退:繁中→简中,其余→英文)。选中这些语言时插件文案是完整母语,DSH 其余界面按回退链显示,仍然可用。
272
+ - 翻译源文件在 `i18n/<locale>.json`(一种语言一个文件),`npm run i18n` 生成内嵌字典与 `locale/<locale>.json`;`npm test` 会校验「键集合一致、无空值、拉丁语系无中日韩残留、生成结果与源同步」。
273
+ - **翻译为 AI 初译**,未经过母语者审校;发现措辞问题欢迎提交 PR 修改对应的 `i18n/<locale>.json` 后跑一次 `npm run i18n`。
274
274
 
275
275
  ## 开发
276
276