@ysk-kit/cli 1.6.2 → 1.6.3
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ysk-kit/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ysk-kit": "./dist/index.js",
|
|
7
7
|
"yskk": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@ysk-kit/api-http": "1.6.
|
|
11
|
-
"@ysk-kit/contracts": "1.6.
|
|
10
|
+
"@ysk-kit/api-http": "1.6.3",
|
|
11
|
+
"@ysk-kit/contracts": "1.6.3",
|
|
12
12
|
"zod": "^4.6.7"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: i18n-localize
|
|
3
|
+
description: >
|
|
4
|
+
Wire YSK Kit UI and envelope strings through @ysk-kit/i18n (zh-HK | en).
|
|
5
|
+
Use when adding or changing user-visible copy, ErrorBanner, email/push text, locale switch, or /i18n-localize.
|
|
6
|
+
中文:i18n、zh-HK、en、envelope 訊息、Intl 格式。
|
|
7
|
+
Do not use for a second UI library, RTL, or unsupervised jargon machine translation.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Read `docs/skills/i18n-localize.md`. Law: `AGENTS.md`.
|
|
11
|
+
|
|
12
|
+
1. Wire `@ysk-kit/i18n` (`zh-HK` | `en`). Never hard-code product copy in JSX beyond call-site keys.
|
|
13
|
+
2. Map envelope `error.code` to localized `ERROR_MESSAGE`; keep codes English-stable. Use `Intl` for dates/numbers/currency.
|
|
14
|
+
3. Verify both locales render. A missing key must fail the smoke, not blank the UI.
|
|
15
|
+
Gotcha: do not invent a second UI library, add RTL, or machine-translate domain jargon without a human review.
|
|
16
|
+
Verify: both locales render; docs pair if guide text changed.
|
|
17
|
+
Full steps: `docs/skills/i18n-localize.md`.
|