@juicesharp/rpiv-i18n 1.10.0 → 1.10.2
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/docs/cover.png +0 -0
- package/docs/cover.svg +70 -100
- package/package.json +2 -2
package/docs/cover.png
CHANGED
|
Binary file
|
package/docs/cover.svg
CHANGED
|
@@ -2,118 +2,88 @@
|
|
|
2
2
|
<title>rpiv-i18n — i18n for any Pi extension in 3 lines</title>
|
|
3
3
|
<defs>
|
|
4
4
|
<style>
|
|
5
|
-
.mono
|
|
6
|
-
.
|
|
7
|
-
.ink
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.rule { stroke: #2A2620; }
|
|
14
|
-
.rule-bright { stroke: #FF7A3D; }
|
|
5
|
+
.mono { font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
6
|
+
.serif { font-family: 'Iowan Old Style', 'Hoefler Text', Charter, 'Source Serif Pro', Georgia, serif; }
|
|
7
|
+
.ink { fill: #ede6d3; }
|
|
8
|
+
.text-quiet { fill: #a8a29e; }
|
|
9
|
+
.text-distant { fill: #9c968d; }
|
|
10
|
+
.ochre { fill: #a8896c; }
|
|
11
|
+
.sage { fill: #8a9580; }
|
|
12
|
+
.sage-deep { fill: #5e6b56; }
|
|
15
13
|
</style>
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<pattern id="grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
|
24
|
-
<path d="M32 0 H0 V32" fill="none" stroke="#161411" stroke-width="0.5"/>
|
|
25
|
-
</pattern>
|
|
26
|
-
<pattern id="dots" width="6" height="6" patternUnits="userSpaceOnUse">
|
|
27
|
-
<circle cx="3" cy="3" r="0.6" fill="#231F1A"/>
|
|
28
|
-
</pattern>
|
|
29
|
-
<radialGradient id="vignette" cx="50%" cy="50%" r="70%">
|
|
30
|
-
<stop offset="60%" stop-color="#0E0D0B" stop-opacity="0"/>
|
|
31
|
-
<stop offset="100%" stop-color="#000" stop-opacity="0.55"/>
|
|
14
|
+
<radialGradient id="wash-ochre" cx="25%" cy="10%" r="65%">
|
|
15
|
+
<stop offset="0%" stop-color="#a8896c" stop-opacity="0.10"/>
|
|
16
|
+
<stop offset="100%" stop-color="#a8896c" stop-opacity="0"/>
|
|
17
|
+
</radialGradient>
|
|
18
|
+
<radialGradient id="wash-sage" cx="85%" cy="90%" r="55%">
|
|
19
|
+
<stop offset="0%" stop-color="#8a9580" stop-opacity="0.07"/>
|
|
20
|
+
<stop offset="100%" stop-color="#8a9580" stop-opacity="0"/>
|
|
32
21
|
</radialGradient>
|
|
33
22
|
</defs>
|
|
34
23
|
|
|
35
|
-
|
|
36
|
-
<rect width="1280" height="800"
|
|
37
|
-
<rect width="1280" height="800" fill="url(#
|
|
38
|
-
<rect width="1280" height="800" fill="url(#dots)" opacity="0.4"/>
|
|
39
|
-
<rect width="1280" height="800" filter="url(#grain)" opacity="0.5"/>
|
|
40
|
-
<rect width="1280" height="800" fill="url(#vignette)"/>
|
|
41
|
-
|
|
42
|
-
<!-- Crop marks -->
|
|
43
|
-
<g class="rule-bright" stroke-width="1" fill="none" opacity="0.95">
|
|
44
|
-
<path d="M40 56 L56 56 M56 40 L56 56"/>
|
|
45
|
-
<path d="M1240 56 L1224 56 M1224 40 L1224 56"/>
|
|
46
|
-
<path d="M40 744 L56 744 M56 760 L56 744"/>
|
|
47
|
-
<path d="M1240 744 L1224 744 M1224 760 L1224 744"/>
|
|
48
|
-
</g>
|
|
24
|
+
<rect width="1280" height="800" fill="#1c1a17"/>
|
|
25
|
+
<rect width="1280" height="800" fill="url(#wash-ochre)"/>
|
|
26
|
+
<rect width="1280" height="800" fill="url(#wash-sage)"/>
|
|
49
27
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<!-- Logotype -->
|
|
56
|
-
<text class="display ink" x="64" y="200" font-size="116" font-weight="700" letter-spacing="-4">r<tspan fill="#6FD0B8">pi</tspan>v<tspan class="accent">-</tspan>i18n</text>
|
|
57
|
-
<line x1="64" y1="216" x2="178" y2="216" class="rule-bright" stroke-width="2"/>
|
|
58
|
-
<text class="mono muted" x="64" y="246" font-size="16" letter-spacing="0.5">i18n for any Pi extension — in 3 lines.</text>
|
|
59
|
-
<text class="mono dim" x="64" y="270" font-size="11" letter-spacing="2.2">/LANGUAGES PICKER · --LOCALE FLAG · ENGLISH FALLBACK PER KEY</text>
|
|
60
|
-
|
|
61
|
-
<!-- Locale chips top-right -->
|
|
62
|
-
<g transform="translate(1080 188)">
|
|
63
|
-
<rect x="0" y="-22" width="60" height="36" fill="#13110D" stroke="#6FD0B8" stroke-width="1.5"/>
|
|
64
|
-
<text class="mono mint" x="30" y="2" font-size="18" font-weight="700" letter-spacing="1.5" text-anchor="middle">EN</text>
|
|
65
|
-
<rect x="68" y="-22" width="60" height="36" fill="#13110D" stroke="#6FD0B8" stroke-width="1.5"/>
|
|
66
|
-
<text class="mono mint" x="98" y="2" font-size="18" font-weight="700" letter-spacing="1.5" text-anchor="middle">DE</text>
|
|
67
|
-
<text class="mono muted" x="64" y="34" font-size="10" letter-spacing="2" text-anchor="middle">+ ANY OTHER</text>
|
|
28
|
+
<g fill="none" stroke="#8a9580" stroke-linecap="round" opacity="0.45">
|
|
29
|
+
<path d="M1120 60 q36 -52 88 -60 q40 -5 68 14" stroke-width="1.1"/>
|
|
30
|
+
<path d="M1140 80 q28 -18 60 -14 q24 3 42 14" stroke-width="0.7" opacity="0.6"/>
|
|
31
|
+
<circle cx="1210" cy="32" r="2" opacity="0.5"/>
|
|
32
|
+
<circle cx="1160" cy="60" r="1.4" opacity="0.4"/>
|
|
68
33
|
</g>
|
|
69
34
|
|
|
70
|
-
|
|
71
|
-
<text class="mono muted" x="64" y="328" font-size="10.5" letter-spacing="2.4">FIG. 01 — THREE-LINE API</text>
|
|
72
|
-
<text class="mono muted" x="1216" y="328" font-size="10.5" letter-spacing="2.4" text-anchor="end">register → scope → translate</text>
|
|
73
|
-
<line x1="64" y1="340" x2="1216" y2="340" class="rule" stroke-width="0.75"/>
|
|
35
|
+
<text class="mono text-distant" x="80" y="64" font-size="11" letter-spacing="0.18em">PI AGENT EXTENSION</text>
|
|
74
36
|
|
|
75
|
-
|
|
37
|
+
<text class="serif ink" x="80" y="152" font-size="80" font-weight="700" letter-spacing="-2.5">rpiv<tspan class="ochre">-</tspan>i18n</text>
|
|
38
|
+
<text class="mono text-quiet" x="80" y="196" font-size="19" letter-spacing="0.2">i18n for any Pi extension — in 3 lines.</text>
|
|
76
39
|
|
|
77
|
-
|
|
78
|
-
<g transform="translate(64 360)">
|
|
79
|
-
<rect x="0" y="0" width="1152" height="80" fill="#15120E" stroke="#3A3530" stroke-width="1"/>
|
|
80
|
-
<text class="mono dim" x="14" y="22" font-size="11" letter-spacing="1.8">001 — REGISTER STRINGS</text>
|
|
81
|
-
<text class="mono ink" x="14" y="58" font-size="26">
|
|
82
|
-
<tspan class="accent" font-weight="700">registerStrings</tspan>(<tspan class="mint">'@me/tool'</tspan>, { <tspan class="mint">en</tspan>, <tspan class="mint">de</tspan> })
|
|
83
|
-
</text>
|
|
84
|
-
</g>
|
|
40
|
+
<line x1="80" y1="228" x2="1200" y2="228" stroke="#2e2b27" stroke-width="1"/>
|
|
85
41
|
|
|
86
|
-
|
|
87
|
-
<path d="M640 460 L640 510" stroke="#FF7A3D" stroke-width="3" fill="none"/>
|
|
88
|
-
<path d="M624 498 L640 514 L656 498" fill="none" stroke="#FF7A3D" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/>
|
|
89
|
-
|
|
90
|
-
<!-- Row 2: scope -->
|
|
91
|
-
<g transform="translate(64 524)">
|
|
92
|
-
<rect x="0" y="0" width="1152" height="80" fill="#15120E" stroke="#3A3530" stroke-width="1"/>
|
|
93
|
-
<text class="mono dim" x="14" y="22" font-size="11" letter-spacing="1.8">002 — SCOPE TO YOUR PACKAGE</text>
|
|
94
|
-
<text class="mono ink" x="14" y="58" font-size="26">
|
|
95
|
-
<tspan class="dim">const</tspan> <tspan class="ink" font-weight="700">t</tspan> = <tspan class="accent" font-weight="700">scope</tspan>(<tspan class="mint">'@me/tool'</tspan>)
|
|
96
|
-
</text>
|
|
97
|
-
</g>
|
|
42
|
+
<rect x="80" y="264" width="1120" height="440" rx="3" fill="#1c1a17" stroke="#3a3631" stroke-width="1"/>
|
|
98
43
|
|
|
99
|
-
<!--
|
|
100
|
-
<
|
|
101
|
-
<path d="M624 648 L640 664 L656 648" fill="none" stroke="#FF7A3D" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/>
|
|
44
|
+
<!-- Locales strip -->
|
|
45
|
+
<text class="mono text-distant" x="120" y="300" font-size="11" letter-spacing="0.2em">LOCALES</text>
|
|
102
46
|
|
|
103
|
-
|
|
104
|
-
<
|
|
105
|
-
<rect x="0" y="0" width="1152" height="32" fill="#13110D" stroke="#1F3A33" stroke-width="1"/>
|
|
106
|
-
<text class="mono ink" x="14" y="22" font-size="20">
|
|
107
|
-
<tspan class="ink" font-weight="700">t</tspan>(<tspan class="mint">'hint.enter'</tspan>, <tspan class="mint">'Enter to select'</tspan>)<tspan class="muted"> → </tspan><tspan class="mint" font-weight="700">"Eingabe zum Auswählen"</tspan>
|
|
108
|
-
</text>
|
|
109
|
-
</g>
|
|
47
|
+
<rect x="220" y="284" width="68" height="24" rx="2" fill="#2d2925" stroke="#8a9580" stroke-width="1.2"/>
|
|
48
|
+
<text class="mono sage" x="254" y="301" font-size="13" font-weight="700" text-anchor="middle" xml:space="preserve">✓ EN</text>
|
|
110
49
|
|
|
111
|
-
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<text class="mono
|
|
117
|
-
|
|
50
|
+
<rect x="296" y="284" width="56" height="24" rx="2" fill="none" stroke="#3a3631" stroke-width="1"/>
|
|
51
|
+
<text class="mono text-distant" x="324" y="301" font-size="13" text-anchor="middle">DE</text>
|
|
52
|
+
|
|
53
|
+
<text class="mono text-distant" x="364" y="301" font-size="12" letter-spacing="0.1em">+ any other</text>
|
|
54
|
+
|
|
55
|
+
<text class="mono text-distant" x="1160" y="301" font-size="11" letter-spacing="0.15em" text-anchor="end">/languages · --locale</text>
|
|
56
|
+
|
|
57
|
+
<line x1="120" y1="324" x2="1160" y2="324" stroke="#2e2b27" stroke-width="1"/>
|
|
58
|
+
|
|
59
|
+
<!-- 01 register -->
|
|
60
|
+
<text class="mono text-distant" x="120" y="372" font-size="11" letter-spacing="0.2em">01</text>
|
|
61
|
+
<text class="mono" x="170" y="372" font-size="22"><tspan class="ochre" font-weight="700">registerStrings</tspan><tspan class="text-quiet">(</tspan><tspan class="sage">'@me/tool'</tspan><tspan class="text-quiet">, { </tspan><tspan class="sage">en</tspan><tspan class="text-quiet">, </tspan><tspan class="sage">de</tspan><tspan class="text-quiet"> })</tspan></text>
|
|
62
|
+
|
|
63
|
+
<text class="mono sage" x="170" y="412" font-size="22" font-weight="700">↓</text>
|
|
64
|
+
|
|
65
|
+
<!-- 02 scope -->
|
|
66
|
+
<text class="mono text-distant" x="120" y="460" font-size="11" letter-spacing="0.2em">02</text>
|
|
67
|
+
<text class="mono" x="170" y="460" font-size="22"><tspan class="text-distant">const </tspan><tspan class="ink" font-weight="700">t</tspan><tspan class="text-distant"> = </tspan><tspan class="ochre" font-weight="700">scope</tspan><tspan class="text-quiet">(</tspan><tspan class="sage">'@me/tool'</tspan><tspan class="text-quiet">)</tspan></text>
|
|
68
|
+
|
|
69
|
+
<text class="mono sage" x="170" y="500" font-size="22" font-weight="700">↓</text>
|
|
70
|
+
|
|
71
|
+
<!-- 03 translate -->
|
|
72
|
+
<text class="mono text-distant" x="120" y="548" font-size="11" letter-spacing="0.2em">03</text>
|
|
73
|
+
<text class="mono" x="170" y="548" font-size="22"><tspan class="ink" font-weight="700">t</tspan><tspan class="text-quiet">(</tspan><tspan class="sage">'hint.enter'</tspan><tspan class="text-quiet">, </tspan><tspan class="sage">'Enter to select'</tspan><tspan class="text-quiet">)</tspan></text>
|
|
74
|
+
|
|
75
|
+
<text class="mono" x="170" y="586" font-size="20"><tspan class="text-distant">➞ </tspan><tspan class="sage" font-weight="700">"Eingabe zum Auswählen"</tspan></text>
|
|
76
|
+
|
|
77
|
+
<!-- Caption -->
|
|
78
|
+
<text class="mono" x="120" y="660" font-size="13" letter-spacing="0.12em"><tspan class="sage" font-weight="700">[3 lines]</tspan> <tspan class="text-distant">REGISTER · SCOPE · TRANSLATE · ENGLISH FALLBACK PER KEY</tspan></text>
|
|
79
|
+
|
|
80
|
+
<line x1="80" y1="740" x2="1200" y2="740" stroke="#2e2b27" stroke-width="1"/>
|
|
81
|
+
|
|
82
|
+
<text class="mono text-distant" x="80" y="776" font-size="12" letter-spacing="0.12em">
|
|
83
|
+
<tspan class="ochre" font-weight="700">▌ rpiv-i18n</tspan>
|
|
84
|
+
<tspan dx="12">│</tspan>
|
|
85
|
+
<tspan dx="12" class="sage">EN · DE · + any other</tspan>
|
|
86
|
+
<tspan dx="12">│</tspan>
|
|
87
|
+
<tspan dx="12">npm:@juicesharp/rpiv-i18n</tspan>
|
|
118
88
|
</text>
|
|
119
89
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-i18n",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
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.10.
|
|
49
|
+
"@juicesharp/rpiv-config": "^1.10.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@earendil-works/pi-coding-agent": "*",
|