@arronqzy/i18n 0.1.11 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arronqzy/i18n",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
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/eslint-config": "0.0.0",
35
- "@arronqzy/typescript-config": "1.0.0"
34
+ "@arronqzy/typescript-config": "1.0.0",
35
+ "@arronqzy/eslint-config": "0.0.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
@@ -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:...\"); uploads are saved as base64 automatically.",
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)",
@@ -1004,9 +1012,20 @@ export const enUS = {
1004
1012
  workspaceLoaded: "Workspace loaded",
1005
1013
  workspaceLoadedDesc: "View and blueprint restored",
1006
1014
  openWorkspaceFailed: "Failed to open workspace",
1015
+ createWorkspaceFailed: "Failed to create workspace",
1007
1016
  syncFailed: "Sync failed",
1017
+ deleteWorkspaceFailed: "Failed to delete workspace",
1008
1018
  workspaceDeleted: "Workspace deleted",
1009
1019
  openPreviewFailed: "Failed to open preview",
1020
+ workspaceStorageUnavailable:
1021
+ "Local storage is unavailable (private mode, permissions, or embedded page). Try another browser or exit private mode.",
1022
+ workspaceStorageTimeout:
1023
+ "Local storage timed out. Close extra tabs and try again.",
1024
+ workspaceStorageQuotaExceeded:
1025
+ "Local storage is full. Delete unused workspaces or reduce large media assets, then retry.",
1026
+ workspaceStorageSerializeFailed:
1027
+ "Workspace data could not be serialized. Remove non-persistable objects and retry.",
1028
+ workspaceStorageFailed: "Failed to write the local workspace. Please try again.",
1010
1029
  clearedBlueprintLogs: "Cleared {removed} blueprint log(s) from IndexedDB",
1011
1030
  noSavedBlueprintLogs: "No saved logs in IndexedDB",
1012
1031
  mergeNeedTwoLayers: "Select at least 2 layers to merge",
@@ -1463,22 +1482,26 @@ export const enUS = {
1463
1482
  swaggerHtmlReturned: "Response is HTML; provide an OpenAPI/Swagger JSON URL",
1464
1483
  swaggerInvalidJson: "Swagger document is not valid JSON",
1465
1484
  jsonTitle: "JSON node",
1466
- jsonHint: "On a true signal, parse the JSON below into an object/array and emit true; on parse failure emit false.",
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",
1467
1488
  jsonContent: "JSON content",
1468
1489
  jsonFormatError: "Invalid JSON: {error}",
1469
1490
  jsonFormatOk: "JSON is valid",
1470
1491
  storageTitle: "Storage node",
1471
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.",
1472
1493
  storageReadTitle: "Read",
1473
- 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.",
1474
1495
  storageSetTitle: "Set",
1475
- 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).",
1476
1497
  storageTarget: "Storage",
1477
1498
  storageKey: "Key",
1478
1499
  storageValue: "Value",
1479
1500
  storageSession: "sessionStorage",
1480
1501
  storageLocal: "localStorage",
1481
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",
1482
1505
  logicTitle: "Logic node",
1483
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).",
1484
1507
  jsCode: "JavaScript code",
@@ -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:...\") 形式;上传后会自动写入 base64。",
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(裁剪铺满)",
@@ -1001,9 +1009,19 @@ export const zhCN = {
1001
1009
  workspaceLoaded: "工作区已加载",
1002
1010
  workspaceLoadedDesc: "视图与蓝图已恢复",
1003
1011
  openWorkspaceFailed: "打开工作区失败",
1012
+ createWorkspaceFailed: "创建工作区失败",
1004
1013
  syncFailed: "同步失败",
1014
+ deleteWorkspaceFailed: "删除工作区失败",
1005
1015
  workspaceDeleted: "工作区已删除",
1006
1016
  openPreviewFailed: "打开预览失败",
1017
+ workspaceStorageUnavailable:
1018
+ "当前环境无法使用本地存储(隐私模式、权限受限或嵌入页限制)。请换浏览器或关闭隐私模式后重试。",
1019
+ workspaceStorageTimeout: "本地存储响应超时,请关闭多余标签页后重试。",
1020
+ workspaceStorageQuotaExceeded:
1021
+ "本地存储空间不足。请删除不用的工作区,或减少大图/音视频资源后重试。",
1022
+ workspaceStorageSerializeFailed:
1023
+ "工作区数据无法序列化保存。请检查是否含有不可保存的特殊对象后重试。",
1024
+ workspaceStorageFailed: "写入本地工作区失败,请稍后重试。",
1007
1025
  clearedBlueprintLogs: "已清空 IndexedDB 中 {removed} 条蓝图日志",
1008
1026
  noSavedBlueprintLogs: "IndexedDB 中暂无已保存日志",
1009
1027
  mergeNeedTwoLayers: "至少勾选 2 个图层后可合并",
@@ -1460,22 +1478,26 @@ export const zhCN = {
1460
1478
  swaggerHtmlReturned: "返回内容为 HTML,请填写 OpenAPI/Swagger 的 JSON 地址",
1461
1479
  swaggerInvalidJson: "Swagger 文档不是有效的 JSON",
1462
1480
  jsonTitle: "JSON 节点",
1463
- jsonHint: "收到真信号后,将下方 JSON 解析为 JavaScript object(或 array)并从输出口发出真信号;解析失败则发出假信号。",
1481
+ jsonHint: "收到真信号后,将下方 JSON 解析为 object/array 并发出真信号;支持 {scope?...} 模板(运行时按上游 scope 替换)。解析失败则发出假信号。",
1482
+ jsonScopeHint: "可在 JSON 任意位置写 {scope?.value};位于字符串内会转义,位于值位置会写入 JSON 字面量。",
1483
+ jsonScopeDeferred: "含 scope 模板,将在运行时解析后校验",
1464
1484
  jsonContent: "JSON 内容",
1465
1485
  jsonFormatError: "JSON 格式错误:{error}",
1466
1486
  jsonFormatOk: "JSON 格式正确",
1467
1487
  storageTitle: "存储节点",
1468
1488
  storageHint: "收到真信号后先写入再读取。不配置设置则不写入;不配置读取则输出空。设置与读取同时配置时按「先设置、后读取」执行。",
1469
1489
  storageReadTitle: "读取",
1470
- storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key。收到真信号后输出对应值。",
1490
+ storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key(支持 {scope?...})。收到真信号后输出对应值。",
1471
1491
  storageSetTitle: "设置",
1472
- storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key 写入所选缓存。",
1492
+ storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key(也支持模板)写入所选缓存。",
1473
1493
  storageTarget: "存储位置",
1474
1494
  storageKey: "键",
1475
1495
  storageValue: "值",
1476
1496
  storageSession: "sessionStorage",
1477
1497
  storageLocal: "localStorage",
1478
1498
  storageValueHint: "支持 {scope}、{scope.value} 等模板;整段填写 {scope...} 时会写入解析后的值。",
1499
+ noMatchingStorageKey: "无匹配的存储键",
1500
+ noStorageKeys: "当前存储中暂无可用键",
1479
1501
  logicTitle: "逻辑节点",
1480
1502
  logicHint: "收到真信号后,将输入数据传入下方 update 函数并执行;返回值作为真信号输出。代码语法错误或运行时报错则发出假信号(错误信息为输出值)。",
1481
1503
  jsCode: "JavaScript 代码",