@juicesharp/rpiv-i18n 1.2.0 → 1.3.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/README.md +3 -3
- package/i18n-ui.ts +2 -2
- package/index.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ The SDK gives every Pi extension a single shared locale dial. Register your tran
|
|
|
64
64
|
### Register strings at extension load
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
|
-
import type { ExtensionAPI } from "@
|
|
67
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
68
68
|
import { registerStrings, scope } from "@juicesharp/rpiv-i18n";
|
|
69
69
|
|
|
70
70
|
const NAMESPACE = "@my-org/cool-tool";
|
|
@@ -132,7 +132,7 @@ my-extension/
|
|
|
132
132
|
{
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"@juicesharp/rpiv-i18n": "*",
|
|
135
|
-
"@
|
|
135
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
136
136
|
},
|
|
137
137
|
"peerDependenciesMeta": {
|
|
138
138
|
"@juicesharp/rpiv-i18n": { "optional": true }
|
|
@@ -191,7 +191,7 @@ Use the same dynamic-import shim pattern as the bridge - `registerStrings` is a
|
|
|
191
191
|
```ts
|
|
192
192
|
import { readFileSync } from "node:fs";
|
|
193
193
|
import { fileURLToPath } from "node:url";
|
|
194
|
-
import type { ExtensionAPI } from "@
|
|
194
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
195
195
|
import { I18N_NAMESPACE } from "./state/i18n-bridge.js";
|
|
196
196
|
|
|
197
197
|
type TranslationMap = Readonly<Record<string, string>>;
|
package/i18n-ui.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* private buildSelectPanel owns the layout + theme wiring.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { DynamicBorder, type ExtensionContext, type Theme } from "@
|
|
10
|
-
import { Container, type SelectItem, SelectList, Spacer, Text } from "@
|
|
9
|
+
import { DynamicBorder, type ExtensionContext, type Theme } from "@earendil-works/pi-coding-agent";
|
|
10
|
+
import { Container, type SelectItem, SelectList, Spacer, Text } from "@earendil-works/pi-tui";
|
|
11
11
|
|
|
12
12
|
const MAX_VISIBLE_ROWS = 10;
|
|
13
13
|
const NAV_HINT = "↑↓ navigate • enter select • esc cancel";
|
package/index.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* Exposes i18n state via globalThis[Symbol.for("rpiv-i18n")] as plain data.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type { ExtensionAPI } from "@
|
|
13
|
-
import type { SelectItem } from "@
|
|
12
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
13
|
+
import type { SelectItem } from "@earendil-works/pi-tui";
|
|
14
14
|
import {
|
|
15
15
|
applyLocale,
|
|
16
16
|
detectLocaleFromConfigAndEnv,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-i18n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
47
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
48
|
+
"@earendil-works/pi-tui": "*"
|
|
49
49
|
}
|
|
50
50
|
}
|