@arronqzy/i18n 0.1.12 → 0.1.13
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 +1 -1
- package/src/locales/en-US.ts +16 -4
- package/src/locales/zh-CN.ts +16 -4
package/package.json
CHANGED
package/src/locales/en-US.ts
CHANGED
|
@@ -421,6 +421,11 @@ export const enUS = {
|
|
|
421
421
|
formatterExample4: "4) ${c} / {b} -> $120 / Mon",
|
|
422
422
|
labelsCsv: "Categories (comma-separated)",
|
|
423
423
|
valuesCsv: "Values (comma-separated)",
|
|
424
|
+
labelsCsvPlaceholder: "A,B or [...{scope?.labels}]",
|
|
425
|
+
valuesCsvPlaceholder: "1,2 or [...{scope?.values}]",
|
|
426
|
+
scopeTemplateHint: "Supports {scope?...} templates; autocomplete after a ViewBind writes scope.",
|
|
427
|
+
textHtmlSource: "HTML source (scope templates)",
|
|
428
|
+
textHtmlSourcePlaceholder: "<p>{scope?.title}</p>",
|
|
424
429
|
xAxisName: "X-axis name",
|
|
425
430
|
yAxisName: "Y-axis name",
|
|
426
431
|
xAxisNamePlaceholder: "e.g. date / category",
|
|
@@ -581,7 +586,10 @@ export const enUS = {
|
|
|
581
586
|
uploadVideo: "Upload video",
|
|
582
587
|
imageUrlCss: "Image URL / CSS",
|
|
583
588
|
imageUrlHintLabel: "Image URL",
|
|
584
|
-
imageUrlHint: "Use a remote URL or url(\"data:...\");
|
|
589
|
+
imageUrlHint: "Use a remote URL or url(\"data:...\"); supports templates like http://{scope?.host}:30081/a.png. Uploads are saved as base64 automatically.",
|
|
590
|
+
urlScopePlaceholder: "http://{scope?.host}:30081/path",
|
|
591
|
+
urlScopeHint: "Insert {scope?...} into URLs; type { after a ViewBind writes scope to autocomplete.",
|
|
592
|
+
scene3dModelUrl: "Model URL",
|
|
585
593
|
objectFit: "Object fit",
|
|
586
594
|
objectFitFull: "Object fit (object-fit / background-size)",
|
|
587
595
|
fitCover: "cover (crop to fill)",
|
|
@@ -1474,22 +1482,26 @@ export const enUS = {
|
|
|
1474
1482
|
swaggerHtmlReturned: "Response is HTML; provide an OpenAPI/Swagger JSON URL",
|
|
1475
1483
|
swaggerInvalidJson: "Swagger document is not valid JSON",
|
|
1476
1484
|
jsonTitle: "JSON node",
|
|
1477
|
-
jsonHint: "On a true signal, parse the JSON below into an object/array and emit true
|
|
1485
|
+
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.",
|
|
1486
|
+
jsonScopeHint: "Write {scope?.value} anywhere in the JSON; inside strings it is escaped, in value position it becomes a JSON literal.",
|
|
1487
|
+
jsonScopeDeferred: "Contains scope templates; validated after runtime resolution",
|
|
1478
1488
|
jsonContent: "JSON content",
|
|
1479
1489
|
jsonFormatError: "Invalid JSON: {error}",
|
|
1480
1490
|
jsonFormatOk: "JSON is valid",
|
|
1481
1491
|
storageTitle: "Storage node",
|
|
1482
1492
|
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
1493
|
storageReadTitle: "Read",
|
|
1484
|
-
storageReadHint: "Choose sessionStorage or localStorage and a key. On a true signal, output the stored value.",
|
|
1494
|
+
storageReadHint: "Choose sessionStorage or localStorage and a key (supports {scope?...}). On a true signal, output the stored value.",
|
|
1485
1495
|
storageSetTitle: "Set",
|
|
1486
|
-
storageSetHint: "Can write to sessionStorage and localStorage together. On a true signal, store value (supports {scope...} templates) under the given key.",
|
|
1496
|
+
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
1497
|
storageTarget: "Storage",
|
|
1488
1498
|
storageKey: "Key",
|
|
1489
1499
|
storageValue: "Value",
|
|
1490
1500
|
storageSession: "sessionStorage",
|
|
1491
1501
|
storageLocal: "localStorage",
|
|
1492
1502
|
storageValueHint: "Supports {scope}, {scope.value}, and similar templates. A whole {scope...} expression stores the resolved value.",
|
|
1503
|
+
noMatchingStorageKey: "No matching storage keys",
|
|
1504
|
+
noStorageKeys: "No keys in this storage yet",
|
|
1493
1505
|
logicTitle: "Logic node",
|
|
1494
1506
|
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
1507
|
jsCode: "JavaScript code",
|
package/src/locales/zh-CN.ts
CHANGED
|
@@ -419,6 +419,11 @@ export const zhCN = {
|
|
|
419
419
|
formatterExample4: "4) ¥{c} / {b} -> ¥120 / 周一",
|
|
420
420
|
labelsCsv: "类目(逗号分隔)",
|
|
421
421
|
valuesCsv: "数值(逗号分隔)",
|
|
422
|
+
labelsCsvPlaceholder: "A,B 或 [...{scope?.labels}]",
|
|
423
|
+
valuesCsvPlaceholder: "1,2 或 [...{scope?.values}]",
|
|
424
|
+
scopeTemplateHint: "支持 {scope?...} 模板;绑定视图节点后可自动补全。",
|
|
425
|
+
textHtmlSource: "HTML 源码(scope 模板)",
|
|
426
|
+
textHtmlSourcePlaceholder: "<p>{scope?.title}</p>",
|
|
422
427
|
xAxisName: "X 轴名称",
|
|
423
428
|
yAxisName: "Y 轴名称",
|
|
424
429
|
xAxisNamePlaceholder: "例如:日期 / 类目",
|
|
@@ -579,7 +584,10 @@ export const zhCN = {
|
|
|
579
584
|
uploadVideo: "上传视频",
|
|
580
585
|
imageUrlCss: "图片 URL / CSS",
|
|
581
586
|
imageUrlHintLabel: "图片地址",
|
|
582
|
-
imageUrlHint: "可填写远程 URL 或 url(\"data:...\")
|
|
587
|
+
imageUrlHint: "可填写远程 URL 或 url(\"data:...\");支持 http://{scope?.host}:30081/a.png 这类 scope 模板。上传后会自动写入 base64。",
|
|
588
|
+
urlScopePlaceholder: "http://{scope?.host}:30081/path",
|
|
589
|
+
urlScopeHint: "支持在 URL 中插入 {scope?...};绑定视图节点后输入 { 可联想补全。",
|
|
590
|
+
scene3dModelUrl: "模型 URL",
|
|
583
591
|
objectFit: "适应方式",
|
|
584
592
|
objectFitFull: "适应方式(object-fit / background-size)",
|
|
585
593
|
fitCover: "cover(裁剪铺满)",
|
|
@@ -1470,22 +1478,26 @@ export const zhCN = {
|
|
|
1470
1478
|
swaggerHtmlReturned: "返回内容为 HTML,请填写 OpenAPI/Swagger 的 JSON 地址",
|
|
1471
1479
|
swaggerInvalidJson: "Swagger 文档不是有效的 JSON",
|
|
1472
1480
|
jsonTitle: "JSON 节点",
|
|
1473
|
-
jsonHint: "收到真信号后,将下方 JSON 解析为
|
|
1481
|
+
jsonHint: "收到真信号后,将下方 JSON 解析为 object/array 并发出真信号;支持 {scope?...} 模板(运行时按上游 scope 替换)。解析失败则发出假信号。",
|
|
1482
|
+
jsonScopeHint: "可在 JSON 任意位置写 {scope?.value};位于字符串内会转义,位于值位置会写入 JSON 字面量。",
|
|
1483
|
+
jsonScopeDeferred: "含 scope 模板,将在运行时解析后校验",
|
|
1474
1484
|
jsonContent: "JSON 内容",
|
|
1475
1485
|
jsonFormatError: "JSON 格式错误:{error}",
|
|
1476
1486
|
jsonFormatOk: "JSON 格式正确",
|
|
1477
1487
|
storageTitle: "存储节点",
|
|
1478
1488
|
storageHint: "收到真信号后先写入再读取。不配置设置则不写入;不配置读取则输出空。设置与读取同时配置时按「先设置、后读取」执行。",
|
|
1479
1489
|
storageReadTitle: "读取",
|
|
1480
|
-
storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key
|
|
1490
|
+
storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key(支持 {scope?...})。收到真信号后输出对应值。",
|
|
1481
1491
|
storageSetTitle: "设置",
|
|
1482
|
-
storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key
|
|
1492
|
+
storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key(也支持模板)写入所选缓存。",
|
|
1483
1493
|
storageTarget: "存储位置",
|
|
1484
1494
|
storageKey: "键",
|
|
1485
1495
|
storageValue: "值",
|
|
1486
1496
|
storageSession: "sessionStorage",
|
|
1487
1497
|
storageLocal: "localStorage",
|
|
1488
1498
|
storageValueHint: "支持 {scope}、{scope.value} 等模板;整段填写 {scope...} 时会写入解析后的值。",
|
|
1499
|
+
noMatchingStorageKey: "无匹配的存储键",
|
|
1500
|
+
noStorageKeys: "当前存储中暂无可用键",
|
|
1489
1501
|
logicTitle: "逻辑节点",
|
|
1490
1502
|
logicHint: "收到真信号后,将输入数据传入下方 update 函数并执行;返回值作为真信号输出。代码语法错误或运行时报错则发出假信号(错误信息为输出值)。",
|
|
1491
1503
|
jsCode: "JavaScript 代码",
|