@arronqzy/i18n 0.1.12 → 0.1.14
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/package.json +3 -3
- package/src/locales/en-US.ts +20 -4
- package/src/locales/zh-CN.ts +20 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arronqzy/i18n",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Shared Chinese/English i18n for Abuilder (React + Vue)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"react": "^19",
|
|
32
32
|
"typescript": "^5.5.4",
|
|
33
33
|
"vue": "^3.5.13",
|
|
34
|
-
"@arronqzy/
|
|
35
|
-
"@arronqzy/
|
|
34
|
+
"@arronqzy/eslint-config": "0.0.0",
|
|
35
|
+
"@arronqzy/typescript-config": "1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
package/src/locales/en-US.ts
CHANGED
|
@@ -128,6 +128,10 @@ export const enUS = {
|
|
|
128
128
|
outputScale: "Output scale",
|
|
129
129
|
outputScaleHint:
|
|
130
130
|
"On: fonts and content scale as the preview fills the screen. Off: blocks still fill the screen, but content stays original size to avoid distortion",
|
|
131
|
+
about: "About",
|
|
132
|
+
versionLabel: "Version",
|
|
133
|
+
versionValue: "{version}",
|
|
134
|
+
versionUnavailable: "Unknown",
|
|
131
135
|
productName: "Product name",
|
|
132
136
|
productNamePlaceholder: "Enter the current build product name",
|
|
133
137
|
uploadTitleIcon: "Upload title icon",
|
|
@@ -421,6 +425,11 @@ export const enUS = {
|
|
|
421
425
|
formatterExample4: "4) ${c} / {b} -> $120 / Mon",
|
|
422
426
|
labelsCsv: "Categories (comma-separated)",
|
|
423
427
|
valuesCsv: "Values (comma-separated)",
|
|
428
|
+
labelsCsvPlaceholder: "A,B or [...{scope?.labels}]",
|
|
429
|
+
valuesCsvPlaceholder: "1,2 or [...{scope?.values}]",
|
|
430
|
+
scopeTemplateHint: "Supports {scope?...} templates; autocomplete after a ViewBind writes scope.",
|
|
431
|
+
textHtmlSource: "HTML source (scope templates)",
|
|
432
|
+
textHtmlSourcePlaceholder: "<p>{scope?.title}</p>",
|
|
424
433
|
xAxisName: "X-axis name",
|
|
425
434
|
yAxisName: "Y-axis name",
|
|
426
435
|
xAxisNamePlaceholder: "e.g. date / category",
|
|
@@ -581,7 +590,10 @@ export const enUS = {
|
|
|
581
590
|
uploadVideo: "Upload video",
|
|
582
591
|
imageUrlCss: "Image URL / CSS",
|
|
583
592
|
imageUrlHintLabel: "Image URL",
|
|
584
|
-
imageUrlHint: "Use a remote URL or url(\"data:...\");
|
|
593
|
+
imageUrlHint: "Use a remote URL or url(\"data:...\"); supports templates like http://{scope?.host}:30081/a.png. Uploads are saved as base64 automatically.",
|
|
594
|
+
urlScopePlaceholder: "http://{scope?.host}:30081/path",
|
|
595
|
+
urlScopeHint: "Insert {scope?...} into URLs; type { after a ViewBind writes scope to autocomplete.",
|
|
596
|
+
scene3dModelUrl: "Model URL",
|
|
585
597
|
objectFit: "Object fit",
|
|
586
598
|
objectFitFull: "Object fit (object-fit / background-size)",
|
|
587
599
|
fitCover: "cover (crop to fill)",
|
|
@@ -1474,22 +1486,26 @@ export const enUS = {
|
|
|
1474
1486
|
swaggerHtmlReturned: "Response is HTML; provide an OpenAPI/Swagger JSON URL",
|
|
1475
1487
|
swaggerInvalidJson: "Swagger document is not valid JSON",
|
|
1476
1488
|
jsonTitle: "JSON node",
|
|
1477
|
-
jsonHint: "On a true signal, parse the JSON below into an object/array and emit true
|
|
1489
|
+
jsonHint: "On a true signal, parse the JSON below into an object/array and emit true. Supports {scope?...} templates resolved from upstream scope at runtime. On parse failure emit false.",
|
|
1490
|
+
jsonScopeHint: "Write {scope?.value} anywhere in the JSON; inside strings it is escaped, in value position it becomes a JSON literal.",
|
|
1491
|
+
jsonScopeDeferred: "Contains scope templates; validated after runtime resolution",
|
|
1478
1492
|
jsonContent: "JSON content",
|
|
1479
1493
|
jsonFormatError: "Invalid JSON: {error}",
|
|
1480
1494
|
jsonFormatOk: "JSON is valid",
|
|
1481
1495
|
storageTitle: "Storage node",
|
|
1482
1496
|
storageHint: "On a true signal, write first then read. Skip write if set is empty; output empty if read is empty. When both are configured, set runs before read.",
|
|
1483
1497
|
storageReadTitle: "Read",
|
|
1484
|
-
storageReadHint: "Choose sessionStorage or localStorage and a key. On a true signal, output the stored value.",
|
|
1498
|
+
storageReadHint: "Choose sessionStorage or localStorage and a key (supports {scope?...}). On a true signal, output the stored value.",
|
|
1485
1499
|
storageSetTitle: "Set",
|
|
1486
|
-
storageSetHint: "Can write to sessionStorage and localStorage together. On a true signal, store value (supports {scope...} templates) under the given key.",
|
|
1500
|
+
storageSetHint: "Can write to sessionStorage and localStorage together. On a true signal, store value (supports {scope...} templates) under the given key (templates supported too).",
|
|
1487
1501
|
storageTarget: "Storage",
|
|
1488
1502
|
storageKey: "Key",
|
|
1489
1503
|
storageValue: "Value",
|
|
1490
1504
|
storageSession: "sessionStorage",
|
|
1491
1505
|
storageLocal: "localStorage",
|
|
1492
1506
|
storageValueHint: "Supports {scope}, {scope.value}, and similar templates. A whole {scope...} expression stores the resolved value.",
|
|
1507
|
+
noMatchingStorageKey: "No matching storage keys",
|
|
1508
|
+
noStorageKeys: "No keys in this storage yet",
|
|
1493
1509
|
logicTitle: "Logic node",
|
|
1494
1510
|
logicHint: "On a true signal, pass input into the update function below; the return value is emitted as true. Syntax or runtime errors emit false (error as the value).",
|
|
1495
1511
|
jsCode: "JavaScript code",
|
package/src/locales/zh-CN.ts
CHANGED
|
@@ -126,6 +126,10 @@ export const zhCN = {
|
|
|
126
126
|
fontLarge: "字体:大",
|
|
127
127
|
outputScale: "产出缩放",
|
|
128
128
|
outputScaleHint: "开启后预览撑满时字体和内容一起缩放;关闭后块仍撑满全屏,但内容保持原尺寸以免失真",
|
|
129
|
+
about: "关于",
|
|
130
|
+
versionLabel: "版本",
|
|
131
|
+
versionValue: "{version}",
|
|
132
|
+
versionUnavailable: "未知",
|
|
129
133
|
productName: "产物名称",
|
|
130
134
|
productNamePlaceholder: "请输入当前构建产物名称",
|
|
131
135
|
uploadTitleIcon: "上传 title 图标",
|
|
@@ -419,6 +423,11 @@ export const zhCN = {
|
|
|
419
423
|
formatterExample4: "4) ¥{c} / {b} -> ¥120 / 周一",
|
|
420
424
|
labelsCsv: "类目(逗号分隔)",
|
|
421
425
|
valuesCsv: "数值(逗号分隔)",
|
|
426
|
+
labelsCsvPlaceholder: "A,B 或 [...{scope?.labels}]",
|
|
427
|
+
valuesCsvPlaceholder: "1,2 或 [...{scope?.values}]",
|
|
428
|
+
scopeTemplateHint: "支持 {scope?...} 模板;绑定视图节点后可自动补全。",
|
|
429
|
+
textHtmlSource: "HTML 源码(scope 模板)",
|
|
430
|
+
textHtmlSourcePlaceholder: "<p>{scope?.title}</p>",
|
|
422
431
|
xAxisName: "X 轴名称",
|
|
423
432
|
yAxisName: "Y 轴名称",
|
|
424
433
|
xAxisNamePlaceholder: "例如:日期 / 类目",
|
|
@@ -579,7 +588,10 @@ export const zhCN = {
|
|
|
579
588
|
uploadVideo: "上传视频",
|
|
580
589
|
imageUrlCss: "图片 URL / CSS",
|
|
581
590
|
imageUrlHintLabel: "图片地址",
|
|
582
|
-
imageUrlHint: "可填写远程 URL 或 url(\"data:...\")
|
|
591
|
+
imageUrlHint: "可填写远程 URL 或 url(\"data:...\");支持 http://{scope?.host}:30081/a.png 这类 scope 模板。上传后会自动写入 base64。",
|
|
592
|
+
urlScopePlaceholder: "http://{scope?.host}:30081/path",
|
|
593
|
+
urlScopeHint: "支持在 URL 中插入 {scope?...};绑定视图节点后输入 { 可联想补全。",
|
|
594
|
+
scene3dModelUrl: "模型 URL",
|
|
583
595
|
objectFit: "适应方式",
|
|
584
596
|
objectFitFull: "适应方式(object-fit / background-size)",
|
|
585
597
|
fitCover: "cover(裁剪铺满)",
|
|
@@ -1470,22 +1482,26 @@ export const zhCN = {
|
|
|
1470
1482
|
swaggerHtmlReturned: "返回内容为 HTML,请填写 OpenAPI/Swagger 的 JSON 地址",
|
|
1471
1483
|
swaggerInvalidJson: "Swagger 文档不是有效的 JSON",
|
|
1472
1484
|
jsonTitle: "JSON 节点",
|
|
1473
|
-
jsonHint: "收到真信号后,将下方 JSON 解析为
|
|
1485
|
+
jsonHint: "收到真信号后,将下方 JSON 解析为 object/array 并发出真信号;支持 {scope?...} 模板(运行时按上游 scope 替换)。解析失败则发出假信号。",
|
|
1486
|
+
jsonScopeHint: "可在 JSON 任意位置写 {scope?.value};位于字符串内会转义,位于值位置会写入 JSON 字面量。",
|
|
1487
|
+
jsonScopeDeferred: "含 scope 模板,将在运行时解析后校验",
|
|
1474
1488
|
jsonContent: "JSON 内容",
|
|
1475
1489
|
jsonFormatError: "JSON 格式错误:{error}",
|
|
1476
1490
|
jsonFormatOk: "JSON 格式正确",
|
|
1477
1491
|
storageTitle: "存储节点",
|
|
1478
1492
|
storageHint: "收到真信号后先写入再读取。不配置设置则不写入;不配置读取则输出空。设置与读取同时配置时按「先设置、后读取」执行。",
|
|
1479
1493
|
storageReadTitle: "读取",
|
|
1480
|
-
storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key
|
|
1494
|
+
storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key(支持 {scope?...})。收到真信号后输出对应值。",
|
|
1481
1495
|
storageSetTitle: "设置",
|
|
1482
|
-
storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key
|
|
1496
|
+
storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key(也支持模板)写入所选缓存。",
|
|
1483
1497
|
storageTarget: "存储位置",
|
|
1484
1498
|
storageKey: "键",
|
|
1485
1499
|
storageValue: "值",
|
|
1486
1500
|
storageSession: "sessionStorage",
|
|
1487
1501
|
storageLocal: "localStorage",
|
|
1488
1502
|
storageValueHint: "支持 {scope}、{scope.value} 等模板;整段填写 {scope...} 时会写入解析后的值。",
|
|
1503
|
+
noMatchingStorageKey: "无匹配的存储键",
|
|
1504
|
+
noStorageKeys: "当前存储中暂无可用键",
|
|
1489
1505
|
logicTitle: "逻辑节点",
|
|
1490
1506
|
logicHint: "收到真信号后,将输入数据传入下方 update 函数并执行;返回值作为真信号输出。代码语法错误或运行时报错则发出假信号(错误信息为输出值)。",
|
|
1491
1507
|
jsCode: "JavaScript 代码",
|