@juicesharp/rpiv-i18n 1.20.0 → 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.
Files changed (2) hide show
  1. package/i18n.ts +2 -2
  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, loadJsonConfig, saveJsonConfig } from "@juicesharp/rpiv-config";
23
+ import { configPath, loadJsonConfigWithLegacyFallback, saveJsonConfig } from "@juicesharp/rpiv-config";
24
24
 
25
25
  // ---------------------------------------------------------------------------
26
26
  // Types
@@ -182,7 +182,7 @@ export function getActiveLocale(): string | undefined {
182
182
  // ---------------------------------------------------------------------------
183
183
 
184
184
  export function loadLocaleConfig(): LocaleConfig {
185
- return loadJsonConfig<LocaleConfig>(LOCALE_CONFIG_PATH);
185
+ return loadJsonConfigWithLegacyFallback<LocaleConfig>("rpiv-i18n", "locale.json");
186
186
  }
187
187
 
188
188
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-i18n",
3
- "version": "1.20.0",
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": "^1.20.0"
49
+ "@juicesharp/rpiv-config": "^2.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@earendil-works/pi-coding-agent": "*",