@arronqzy/i18n 0.1.7 → 0.1.8
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 +31 -0
- package/src/locales/zh-CN.ts +31 -0
package/package.json
CHANGED
package/src/locales/en-US.ts
CHANGED
|
@@ -182,6 +182,7 @@ export const enUS = {
|
|
|
182
182
|
geometry: "Geometry",
|
|
183
183
|
scene3d: "3D",
|
|
184
184
|
grid: "Grid layout",
|
|
185
|
+
viewport: "Viewport",
|
|
185
186
|
image: "Image",
|
|
186
187
|
video: "Video",
|
|
187
188
|
audio: "Audio",
|
|
@@ -258,6 +259,7 @@ export const enUS = {
|
|
|
258
259
|
sectionScene3d: "3D scene",
|
|
259
260
|
sectionGrid: "Grid layout",
|
|
260
261
|
sectionGridChildSpan: "Grid child span",
|
|
262
|
+
sectionViewport: "Viewport",
|
|
261
263
|
sectionReference: "Reference",
|
|
262
264
|
groupBgFill: "Background fill",
|
|
263
265
|
groupBgLayout: "Background image & layout",
|
|
@@ -610,6 +612,14 @@ export const enUS = {
|
|
|
610
612
|
paddingPx: "Padding (px)",
|
|
611
613
|
snapThresholdPx: "Snap threshold (px)",
|
|
612
614
|
gridHint: "Nodes dragged near a slot center snap into the grid and appear as children in the node tree.",
|
|
615
|
+
viewportHint: "Same as a reference node: pick a source layer in the config panel. The viewport shows content at its own size; overflow is scrolled or clipped by the display mode.",
|
|
616
|
+
viewportOverflow: "Display mode",
|
|
617
|
+
viewportOverflowScrollX: "Horizontal scroll",
|
|
618
|
+
viewportOverflowScrollY: "Vertical scroll",
|
|
619
|
+
viewportOverflowScroll: "Both-axis scroll",
|
|
620
|
+
viewportOverflowClip: "Clip overflow",
|
|
621
|
+
viewportEmpty: "Select a referenced layer on the right",
|
|
622
|
+
groupViewportOverflow: "Overflow",
|
|
613
623
|
colSpan: "Column span (colSpan)",
|
|
614
624
|
rowSpan: "Row span (rowSpan)",
|
|
615
625
|
gridChildHint: "Grid children can span multiple cells for complex layouts.",
|
|
@@ -656,6 +666,7 @@ export const enUS = {
|
|
|
656
666
|
searchKwRichText: "rich text",
|
|
657
667
|
searchKwAutoPause: "auto pause",
|
|
658
668
|
searchKwGrid: "grid",
|
|
669
|
+
searchKwViewport: "viewport",
|
|
659
670
|
searchKwColor: "color",
|
|
660
671
|
searchKwAlign: "align",
|
|
661
672
|
searchKwLineHeight: "line height",
|
|
@@ -1029,6 +1040,7 @@ export const enUS = {
|
|
|
1029
1040
|
pie: "Pie chart",
|
|
1030
1041
|
text: "Text",
|
|
1031
1042
|
grid: "Grid layout",
|
|
1043
|
+
viewport: "Viewport",
|
|
1032
1044
|
image: "Image",
|
|
1033
1045
|
video: "Video",
|
|
1034
1046
|
audio: "Audio",
|
|
@@ -1299,6 +1311,7 @@ export const enUS = {
|
|
|
1299
1311
|
typeEvent: "Event",
|
|
1300
1312
|
typeFetch: "Fetch",
|
|
1301
1313
|
typeJson: "JSON",
|
|
1314
|
+
typeStorage: "Storage",
|
|
1302
1315
|
typeClock: "Clock",
|
|
1303
1316
|
summaryNoUrl: "URL not configured",
|
|
1304
1317
|
summaryOutputCount: "{count} time(s)",
|
|
@@ -1306,6 +1319,10 @@ export const enUS = {
|
|
|
1306
1319
|
summaryEmitImmediate: "Emit immediately",
|
|
1307
1320
|
summaryEmitDelayed: "Delay first emit",
|
|
1308
1321
|
summaryEmptyJson: "Empty JSON",
|
|
1322
|
+
summaryStorageUnset: "Read/write not configured",
|
|
1323
|
+
summaryStorageSet: "Set {key}",
|
|
1324
|
+
summaryStorageRead: "Read {key}",
|
|
1325
|
+
summaryStorageSetRead: "Set {setKey} · read {readKey}",
|
|
1309
1326
|
summaryNoScript: "Script not configured",
|
|
1310
1327
|
summaryNoBlueprint: "No blueprint selected",
|
|
1311
1328
|
summaryNoView: "No view nodes linked",
|
|
@@ -1347,6 +1364,7 @@ export const enUS = {
|
|
|
1347
1364
|
roleAnd: "AND node",
|
|
1348
1365
|
roleFetch: "Fetch node",
|
|
1349
1366
|
roleJson: "JSON node",
|
|
1367
|
+
roleStorage: "Storage node",
|
|
1350
1368
|
roleLogic: "Logic node",
|
|
1351
1369
|
roleClock: "Clock node",
|
|
1352
1370
|
roleEvent: "Event node",
|
|
@@ -1359,6 +1377,7 @@ export const enUS = {
|
|
|
1359
1377
|
configLifecycle: "Lifecycle config",
|
|
1360
1378
|
configFetch: "Fetch",
|
|
1361
1379
|
configJson: "JSON node",
|
|
1380
|
+
configStorage: "Storage node",
|
|
1362
1381
|
configClock: "Clock",
|
|
1363
1382
|
configEvent: "Event config",
|
|
1364
1383
|
configView: "View node config",
|
|
@@ -1448,6 +1467,18 @@ export const enUS = {
|
|
|
1448
1467
|
jsonContent: "JSON content",
|
|
1449
1468
|
jsonFormatError: "Invalid JSON: {error}",
|
|
1450
1469
|
jsonFormatOk: "JSON is valid",
|
|
1470
|
+
storageTitle: "Storage node",
|
|
1471
|
+
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
|
+
storageReadTitle: "Read",
|
|
1473
|
+
storageReadHint: "Choose sessionStorage or localStorage and a key. On a true signal, output the stored value.",
|
|
1474
|
+
storageSetTitle: "Set",
|
|
1475
|
+
storageSetHint: "Can write to sessionStorage and localStorage together. On a true signal, store value (supports {scope...} templates) under the given key.",
|
|
1476
|
+
storageTarget: "Storage",
|
|
1477
|
+
storageKey: "Key",
|
|
1478
|
+
storageValue: "Value",
|
|
1479
|
+
storageSession: "sessionStorage",
|
|
1480
|
+
storageLocal: "localStorage",
|
|
1481
|
+
storageValueHint: "Supports {scope}, {scope.value}, and similar templates. A whole {scope...} expression stores the resolved value.",
|
|
1451
1482
|
logicTitle: "Logic node",
|
|
1452
1483
|
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).",
|
|
1453
1484
|
jsCode: "JavaScript code",
|
package/src/locales/zh-CN.ts
CHANGED
|
@@ -180,6 +180,7 @@ export const zhCN = {
|
|
|
180
180
|
geometry: "几何",
|
|
181
181
|
scene3d: "三维",
|
|
182
182
|
grid: "网格布局",
|
|
183
|
+
viewport: "视窗",
|
|
183
184
|
image: "图片",
|
|
184
185
|
video: "视频",
|
|
185
186
|
audio: "音频",
|
|
@@ -256,6 +257,7 @@ export const zhCN = {
|
|
|
256
257
|
sectionScene3d: "三维场景配置",
|
|
257
258
|
sectionGrid: "网格布局配置",
|
|
258
259
|
sectionGridChildSpan: "网格子节点占位",
|
|
260
|
+
sectionViewport: "视窗配置",
|
|
259
261
|
sectionReference: "引用组件配置",
|
|
260
262
|
groupBgFill: "背景填充",
|
|
261
263
|
groupBgLayout: "背景图片与布局",
|
|
@@ -608,6 +610,14 @@ export const zhCN = {
|
|
|
608
610
|
paddingPx: "内边距(px)",
|
|
609
611
|
snapThresholdPx: "吸附阈值(px)",
|
|
610
612
|
gridHint: "其他节点拖拽靠近该网格槽位中心时会自动吸附,并在节点树显示为该网格子节点。",
|
|
613
|
+
viewportHint: "与引用节点相同:在配置区选择引用图层。视窗按自身尺寸显示内容,超出部分由显示效果决定:横向/竖向/双向滚轮或溢出裁剪。",
|
|
614
|
+
viewportOverflow: "显示效果",
|
|
615
|
+
viewportOverflowScrollX: "横向滚轮",
|
|
616
|
+
viewportOverflowScrollY: "竖向滚轮",
|
|
617
|
+
viewportOverflowScroll: "双向滚轮",
|
|
618
|
+
viewportOverflowClip: "溢出裁剪",
|
|
619
|
+
viewportEmpty: "请在右侧选择引用图层",
|
|
620
|
+
groupViewportOverflow: "溢出显示",
|
|
611
621
|
colSpan: "跨列(colSpan)",
|
|
612
622
|
rowSpan: "跨行(rowSpan)",
|
|
613
623
|
gridChildHint: "网格子节点可跨越多格,占据更大区域,便于复杂布局。",
|
|
@@ -654,6 +664,7 @@ export const zhCN = {
|
|
|
654
664
|
searchKwRichText: "富文本",
|
|
655
665
|
searchKwAutoPause: "自动暂停",
|
|
656
666
|
searchKwGrid: "网格",
|
|
667
|
+
searchKwViewport: "视窗",
|
|
657
668
|
searchKwColor: "颜色",
|
|
658
669
|
searchKwAlign: "对齐",
|
|
659
670
|
searchKwLineHeight: "行高",
|
|
@@ -1026,6 +1037,7 @@ export const zhCN = {
|
|
|
1026
1037
|
pie: "饼图",
|
|
1027
1038
|
text: "文本",
|
|
1028
1039
|
grid: "网格布局",
|
|
1040
|
+
viewport: "视窗",
|
|
1029
1041
|
image: "图片",
|
|
1030
1042
|
video: "视频",
|
|
1031
1043
|
audio: "音频",
|
|
@@ -1296,6 +1308,7 @@ export const zhCN = {
|
|
|
1296
1308
|
typeEvent: "事件",
|
|
1297
1309
|
typeFetch: "数据源获取",
|
|
1298
1310
|
typeJson: "JSON 节点",
|
|
1311
|
+
typeStorage: "存储节点",
|
|
1299
1312
|
typeClock: "时钟",
|
|
1300
1313
|
summaryNoUrl: "未配置 URL",
|
|
1301
1314
|
summaryOutputCount: "{count} 次",
|
|
@@ -1303,6 +1316,10 @@ export const zhCN = {
|
|
|
1303
1316
|
summaryEmitImmediate: "立即首发",
|
|
1304
1317
|
summaryEmitDelayed: "延迟首发",
|
|
1305
1318
|
summaryEmptyJson: "空 JSON",
|
|
1319
|
+
summaryStorageUnset: "未配置读写",
|
|
1320
|
+
summaryStorageSet: "设置 {key}",
|
|
1321
|
+
summaryStorageRead: "读取 {key}",
|
|
1322
|
+
summaryStorageSetRead: "设置 {setKey} · 读取 {readKey}",
|
|
1306
1323
|
summaryNoScript: "未配置脚本",
|
|
1307
1324
|
summaryNoBlueprint: "未选择蓝图",
|
|
1308
1325
|
summaryNoView: "未关联视图节点",
|
|
@@ -1344,6 +1361,7 @@ export const zhCN = {
|
|
|
1344
1361
|
roleAnd: "并运算节点",
|
|
1345
1362
|
roleFetch: "数据源节点",
|
|
1346
1363
|
roleJson: "JSON 节点",
|
|
1364
|
+
roleStorage: "存储节点",
|
|
1347
1365
|
roleLogic: "逻辑节点",
|
|
1348
1366
|
roleClock: "时钟节点",
|
|
1349
1367
|
roleEvent: "事件节点",
|
|
@@ -1356,6 +1374,7 @@ export const zhCN = {
|
|
|
1356
1374
|
configLifecycle: "生命周期配置",
|
|
1357
1375
|
configFetch: "数据源获取",
|
|
1358
1376
|
configJson: "JSON 节点",
|
|
1377
|
+
configStorage: "存储节点",
|
|
1359
1378
|
configClock: "时钟",
|
|
1360
1379
|
configEvent: "事件配置",
|
|
1361
1380
|
configView: "视图节点配置",
|
|
@@ -1445,6 +1464,18 @@ export const zhCN = {
|
|
|
1445
1464
|
jsonContent: "JSON 内容",
|
|
1446
1465
|
jsonFormatError: "JSON 格式错误:{error}",
|
|
1447
1466
|
jsonFormatOk: "JSON 格式正确",
|
|
1467
|
+
storageTitle: "存储节点",
|
|
1468
|
+
storageHint: "收到真信号后先写入再读取。不配置设置则不写入;不配置读取则输出空。设置与读取同时配置时按「先设置、后读取」执行。",
|
|
1469
|
+
storageReadTitle: "读取",
|
|
1470
|
+
storageReadHint: "选择 sessionStorage 或 localStorage,以及要读取的 key。收到真信号后输出对应值。",
|
|
1471
|
+
storageSetTitle: "设置",
|
|
1472
|
+
storageSetHint: "可同时写入 sessionStorage 和 localStorage。收到真信号后,将 value(支持 {scope...} 模板)以指定 key 写入所选缓存。",
|
|
1473
|
+
storageTarget: "存储位置",
|
|
1474
|
+
storageKey: "键",
|
|
1475
|
+
storageValue: "值",
|
|
1476
|
+
storageSession: "sessionStorage",
|
|
1477
|
+
storageLocal: "localStorage",
|
|
1478
|
+
storageValueHint: "支持 {scope}、{scope.value} 等模板;整段填写 {scope...} 时会写入解析后的值。",
|
|
1448
1479
|
logicTitle: "逻辑节点",
|
|
1449
1480
|
logicHint: "收到真信号后,将输入数据传入下方 update 函数并执行;返回值作为真信号输出。代码语法错误或运行时报错则发出假信号(错误信息为输出值)。",
|
|
1450
1481
|
jsCode: "JavaScript 代码",
|