@juicesharp/rpiv-i18n 1.19.1 → 2.0.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/i18n.ts +3 -2
- package/package.json +2 -2
package/i18n.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* Config persists at ~/.config/rpiv-i18n/locale.json (chmod 0o600, best-effort writes).
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
import { configPath,
|
|
23
|
+
import { configPath, loadJsonConfigWithLegacyFallback, saveJsonConfig } from "@juicesharp/rpiv-config";
|
|
24
24
|
|
|
25
25
|
// ---------------------------------------------------------------------------
|
|
26
26
|
// Types
|
|
@@ -63,6 +63,7 @@ export const SUPPORTED_LOCALES: readonly { code: string; label: string }[] = [
|
|
|
63
63
|
{ code: "pt-BR", label: "Português (Brasil)" },
|
|
64
64
|
{ code: "ru", label: "Русский" },
|
|
65
65
|
{ code: "uk", label: "Українська" },
|
|
66
|
+
{ code: "zh", label: "中文" },
|
|
66
67
|
];
|
|
67
68
|
|
|
68
69
|
// ---------------------------------------------------------------------------
|
|
@@ -181,7 +182,7 @@ export function getActiveLocale(): string | undefined {
|
|
|
181
182
|
// ---------------------------------------------------------------------------
|
|
182
183
|
|
|
183
184
|
export function loadLocaleConfig(): LocaleConfig {
|
|
184
|
-
return
|
|
185
|
+
return loadJsonConfigWithLegacyFallback<LocaleConfig>("rpiv-i18n", "locale.json");
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-i18n",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Pi extension. The localization foundation for rpiv-* skills: locale detection, the /languages command, the --locale flag, and a cross-package locale registry.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@juicesharp/rpiv-config": "^
|
|
49
|
+
"@juicesharp/rpiv-config": "^2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@earendil-works/pi-coding-agent": "*",
|