@juicesharp/rpiv-i18n 2.13.8 → 2.13.10

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.
@@ -105,7 +105,7 @@ package ships and registers them:
105
105
 
106
106
  ```ts
107
107
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
108
- import { I18N_NAMESPACE } from "./state/i18n-bridge.js";
108
+ import { I18N_NAMESPACE } from "./state/i18n-bridge.ts";
109
109
 
110
110
  type I18nLoader = {
111
111
  registerLocalesFromDir: (namespace: string, packageUrl: string, options?: { label?: string }) => void;
@@ -139,7 +139,7 @@ Notes:
139
139
  ## 5. Use `t(key, fallback)` at the render call site
140
140
 
141
141
  ```ts
142
- import { t } from "../state/i18n-bridge.js";
142
+ import { t } from "../state/i18n-bridge.ts";
143
143
 
144
144
  // ✓ Render-time — re-evaluated each render; live `/languages` switches apply
145
145
  function renderHeader(theme) {
@@ -194,7 +194,7 @@ statuses, modes), a one-line helper keeps render code tight:
194
194
 
195
195
  ```ts
196
196
  // state/i18n-bridge.ts
197
- import { ROW_INTENT_META, type SentinelKind } from "./row-intent.js";
197
+ import { ROW_INTENT_META, type SentinelKind } from "./row-intent.ts";
198
198
 
199
199
  export function displayLabel(kind: SentinelKind): string {
200
200
  return t(`sentinel.${kind}`, ROW_INTENT_META[kind].label);
package/index.ts CHANGED
@@ -17,8 +17,8 @@ import {
17
17
  getActiveLocale,
18
18
  SUPPORTED_LOCALES,
19
19
  saveLocaleConfig,
20
- } from "./i18n.js";
21
- import { showLanguagePicker } from "./i18n-ui.js";
20
+ } from "./i18n.ts";
21
+ import { showLanguagePicker } from "./i18n-ui.ts";
22
22
 
23
23
  const FLAG_NAME = "locale";
24
24
  const COMMAND_NAME = "languages";
package/loader.ts CHANGED
@@ -21,7 +21,7 @@
21
21
 
22
22
  import { readFileSync } from "node:fs";
23
23
  import { fileURLToPath } from "node:url";
24
- import { registerStrings, SUPPORTED_LOCALES, type TranslationMap } from "./i18n.js";
24
+ import { registerStrings, SUPPORTED_LOCALES, type TranslationMap } from "./i18n.ts";
25
25
 
26
26
  export interface RegisterLocalesFromDirOptions {
27
27
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-i18n",
3
- "version": "2.13.8",
3
+ "version": "2.13.10",
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",
@@ -50,7 +50,7 @@
50
50
  ]
51
51
  },
52
52
  "dependencies": {
53
- "@juicesharp/rpiv-config": "^2.13.8"
53
+ "@juicesharp/rpiv-config": "^2.13.10"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@earendil-works/pi-coding-agent": "*",