@deepseek-ai/dsh-client-locale 0.1.3-alpha.2 → 0.1.5-alpha.2

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/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/locale/README.md
5
- README.md: da0931ff5cf78b16d57354a8ac6abe6bf1878e50
6
- README.zh.md: 18eb233e80ba8a68621b2fa34442cdda3c4329a0
5
+ README.md: 56a9cff9c3ec18dcc395378fcd1691207c022284
6
+ README.zh.md: b23a1f2da59d0d83213d9c38e7cee05843881274
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-client-locale` localizes the web GUI: users choose from the registered languages in Settings → General, and the UI copy switches immediately. The package ships `zh` and `en`, while external client plugins can add languages and their namespace dictionaries. On a loopback page, the choice persists as `locale.preference` in `$DSH_HOME/settings.yaml`; a non-loopback page keeps its selection process-local even though Connection authenticates every API method. A fresh browser starts provisionally in the first registered language requested by `navigator` until an allowed Host preference arrives and replaces it live. Plugin authors receive full type checking for the built-in dictionary form and translate through the framework `t` seat; copy rendered through slots follows language switches without a reload.
12
+ Use `dsh-client-locale` to switch the web GUI between the shipped English and Chinese locales or languages added by client plugins. User selections take effect immediately; loopback pages persist them in `$DSH_HOME/settings.yaml`, while non-loopback pages keep them only for the current process. New browsers use the first supported language requested by the browser until an allowed stored preference arrives. Plugin authors add typed namespace dictionaries and translate through the public locale API; slot-rendered copy updates without a reload.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-client-locale` web GUI 提供本地化:用户在“设置 常规”中从已注册语言中选择,UI 文案会立即切换。本包内置 `zh` 与 `en`,外部 client 插件可以增加语言及其命名空间字典。在 loopback 页面上,该选择以 `locale.preference` 存储在 `$DSH_HOME/settings.yaml` 中;非 loopback 页面即使由 Connection 认证所有 API 方法,也只在进程内保留选择。全新浏览器会先临时使用 `navigator` 请求的第一个已注册语言,直到允许读取的 Host 偏好到达并实时替换。插件作者使用内置字典形式时会获得完整类型检查,并通过框架 `t` 席位翻译;经 slot 渲染的文案会随语言切换即时更新。
12
+ 使用 `dsh-client-locale` 可在 web GUI 中切换内置的 English、中文 locale,或 client 插件添加的语言。用户选择会立即生效;loopback 页面把选择持久化到 `$DSH_HOME/settings.yaml`,非 loopback 页面则只为当前进程保留选择。全新浏览器会使用浏览器请求的第一个受支持语言,直到允许读取的已存储偏好到达。插件作者可添加类型化命名空间字典,并通过公开 locale API 翻译;经 slot 渲染的文案无需重新加载即可随语言切换更新。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-locale",
3
3
  "description": "Locale plugin: Host-backed preference, extensible language catalog, browser fallback, and typed built-in dictionaries",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,15 +45,15 @@
45
45
  "@types/react": "~18.3.1",
46
46
  "react": "^18.2.0",
47
47
  "@deepseek-ai/cordis": "^4.0.2",
48
- "@deepseek-ai/dsh-api-remotes": "^0.1.3-alpha.2",
49
- "@deepseek-ai/dsh-client-store": "^0.1.3-alpha.2",
50
- "@deepseek-ai/dsh-client-test-runtime": "^0.1.3-alpha.2",
51
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.3-alpha.2",
52
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.3-alpha.2",
53
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2",
54
- "@deepseek-ai/dsh-client-connection": "^0.1.3-alpha.2",
55
- "@deepseek-ai/dsh-settings": "^0.1.3-alpha.2",
56
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.3-alpha.2"
48
+ "@deepseek-ai/dsh-client-store": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.2",
50
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.5-alpha.2",
51
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
52
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-alpha.2",
53
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.5-alpha.2",
54
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
55
+ "@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.2",
56
+ "@deepseek-ai/dsh-settings": "^0.1.5-alpha.2"
57
57
  },
58
58
  "dependencies": {
59
59
  "@deepseek-ai/schemastery": "^3.18.2"