@dsh-workbench/shared 1.1.1 → 1.1.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/src/i18n/en.ts CHANGED
@@ -299,10 +299,16 @@ export const en: Record<keyof WorkbenchMessages, string> = {
299
299
  'panels.discover.addingSource': 'Adding…',
300
300
  'panels.discover.addFirstSource': 'Add index source',
301
301
  'panels.discover.removeSource': 'Remove',
302
- 'panels.discover.removeSourceNamed': 'Remove {url}',
303
- 'panels.discover.useSource': 'Use',
304
- 'panels.discover.useSourceNamed': 'Use {label}',
305
- 'panels.discover.sourceCurrent': 'In use',
302
+ 'panels.discover.removeTitle': 'Remove this index source?',
303
+ 'panels.discover.removeBody': '"{label}" will be removed from this list; the repository itself is not deleted, and you can add it back later.',
304
+ 'panels.discover.sourceActions': 'Actions for {label}',
305
+ 'panels.discover.sourceStateWritable': 'Publish target',
306
+ 'panels.discover.sourceStateReadOnly': 'Read-only list',
307
+ 'panels.discover.sourceEnable': 'Set up for publishing',
308
+ 'panels.discover.sourceDisable': 'Set to read-only',
309
+ 'panels.discover.sourceWorking': 'Updating…',
310
+ 'panels.discover.sourceEnabled': '"{label}" is ready for publishing',
311
+ 'panels.discover.sourceReadOnly': '"{label}" is now read-only',
306
312
  'panels.discover.refresh': 'Refresh',
307
313
  'panels.discover.search': 'Search modules',
308
314
  'panels.discover.clearSearch': 'Clear search',
@@ -329,7 +335,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
329
335
  'panels.discover.missingIndex': 'This repository has no {path} yet.',
330
336
  'panels.discover.initTitle': 'Initialize this repository as a module market index?',
331
337
  'panels.discover.initCta': 'Initialize market index',
332
- 'panels.discover.initWhat': 'It will write market.json and README.md on {branch}, commit once, and push. Modules you publish from this workbench will commit their build files under packages/<unit>/. The repository stays owned by its owner.',
338
+ 'panels.discover.initWhat': 'It will write market.json and README.md on {branch}, commit once, and push. Modules you publish from this workbench will commit their build files under packages/<package-name>/. The repository stays owned by its owner.',
333
339
  'panels.discover.initBranch': 'Branch',
334
340
  'panels.discover.initBranchHint': 'The index and build files go to this branch; an empty repository gets it created.',
335
341
  'panels.discover.initBranchBad': 'Use only letters, digits, dots, underscores, slashes, or dashes in a branch name.',
@@ -647,6 +653,13 @@ export const en: Record<keyof WorkbenchMessages, string> = {
647
653
  'approval.publish.version': 'Version',
648
654
  'approval.publish.author': 'Author',
649
655
  'approval.publish.authorMissing': 'unsigned',
656
+ 'approval.publish.owner': 'Owner',
657
+ 'approval.publish.ownerUnowned': 'originally unattributed',
658
+ 'approval.publish.ownerTaken': 'Owned by {owner}',
659
+ 'approval.publish.unit': 'Module id',
660
+ 'approval.publish.unitTaken': 'Taken by {entry}',
661
+ 'approval.publish.path': 'Artifact dir',
662
+ 'approval.publish.pathTaken': 'Taken by {entry}',
650
663
  'approval.publish.registry': 'Registry',
651
664
  'approval.publish.repo': 'Repository',
652
665
  'approval.publish.branch': 'Branch',
@@ -657,6 +670,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
657
670
  'approval.publish.twoCommits': 'build files + market.json in 2 commits, one push',
658
671
  'approval.publish.reading': 'Reading…',
659
672
  'approval.publish.changelog': 'Changelog for {version}',
673
+ 'approval.publish.changelogPending': 'This release writes the {version} changelog entry',
660
674
  'approval.publish.changelogMissing': 'No changelog entry for {version}; publishing will be blocked',
661
675
  'approval.publish.targetAuto': 'configured default',
662
676
  'approval.publish.targetTeam': 'team registry',
@@ -665,6 +679,15 @@ export const en: Record<keyof WorkbenchMessages, string> = {
665
679
  'approval.publish.targetGit': 'git repository',
666
680
  'approval.publish.targetMarket': 'module market index',
667
681
  'approval.publish.targetLocal': 'keep local',
682
+ 'approval.market.source': 'Index source',
683
+ 'approval.market.url': 'URL',
684
+ 'approval.market.action': 'This action',
685
+ 'approval.market.policy': 'Current state',
686
+ 'approval.market.enable': 'make it publishable',
687
+ 'approval.market.disable': 'make it read-only',
688
+ 'approval.market.writable': 'publishable',
689
+ 'approval.market.readOnly': 'read-only module list',
690
+ 'approval.market.reading': 'Reading…',
668
691
  'markdown.copy': 'Copy',
669
692
  'markdown.copied': 'Copied',
670
693
  'markdown.footnotes': 'Footnotes',
package/src/i18n/zh.ts CHANGED
@@ -296,10 +296,16 @@ export const zh = {
296
296
  'panels.discover.addingSource': '正在添加…',
297
297
  'panels.discover.addFirstSource': '添加索引源',
298
298
  'panels.discover.removeSource': '移除',
299
- 'panels.discover.removeSourceNamed': '移除 {url}',
300
- 'panels.discover.useSource': '使用',
301
- 'panels.discover.useSourceNamed': '使用 {label}',
302
- 'panels.discover.sourceCurrent': '当前使用',
299
+ 'panels.discover.removeTitle': '移除这个索引源?',
300
+ 'panels.discover.removeBody': '会把「{label}」从这份列表里移除;仓库本身不会被删,之后还能再添加。',
301
+ 'panels.discover.sourceActions': '「{label}」的操作',
302
+ 'panels.discover.sourceStateWritable': '可发布',
303
+ 'panels.discover.sourceStateReadOnly': '仅读取模块列表',
304
+ 'panels.discover.sourceEnable': '设为可发布',
305
+ 'panels.discover.sourceDisable': '设为只读',
306
+ 'panels.discover.sourceWorking': '设置中…',
307
+ 'panels.discover.sourceEnabled': '已把「{label}」设为可发布',
308
+ 'panels.discover.sourceReadOnly': '已把「{label}」设为只读',
303
309
  'panels.discover.refresh': '刷新',
304
310
  'panels.discover.search': '搜索模块',
305
311
  'panels.discover.clearSearch': '清除搜索',
@@ -326,7 +332,7 @@ export const zh = {
326
332
  'panels.discover.missingIndex': '仓库里还没有索引文件 {path}',
327
333
  'panels.discover.initTitle': '把这个仓库初始化成模块市场索引?',
328
334
  'panels.discover.initCta': '初始化成市场索引',
329
- 'panels.discover.initWhat': '会在 {branch} 分支写 market.json 与 README.md,提交一次并推上去;之后从这个工作台发布的模块会把打包好的文件提交到 packages/<unit>/。仓库的写权限归它的所有者。',
335
+ 'panels.discover.initWhat': '会在 {branch} 分支写 market.json 与 README.md,提交一次并推上去;之后从这个工作台发布的模块会把打包好的文件提交到按包名分的 packages/<包名>/。仓库的写权限归它的所有者。',
330
336
  'panels.discover.initBranch': '分支',
331
337
  'panels.discover.initBranchHint': '索引和打包文件都发到这个分支;空仓库会新建它。',
332
338
  'panels.discover.initBranchBad': '分支名只能用字母、数字、点、下划线、斜杠或短横线',
@@ -642,6 +648,13 @@ export const zh = {
642
648
  'approval.publish.version': '版本',
643
649
  'approval.publish.author': '作者',
644
650
  'approval.publish.authorMissing': '未署名',
651
+ 'approval.publish.owner': '认领人',
652
+ 'approval.publish.ownerUnowned': '原来没署名',
653
+ 'approval.publish.ownerTaken': '已有主人:{owner}',
654
+ 'approval.publish.unit': '模块 id',
655
+ 'approval.publish.unitTaken': '已被 {entry} 占用',
656
+ 'approval.publish.path': '产物目录',
657
+ 'approval.publish.pathTaken': '已被 {entry} 占用',
645
658
  'approval.publish.registry': '源',
646
659
  'approval.publish.repo': '仓库',
647
660
  'approval.publish.branch': '分支',
@@ -652,6 +665,7 @@ export const zh = {
652
665
  'approval.publish.twoCommits': '打包文件 + market.json 两次提交,一次推送',
653
666
  'approval.publish.reading': '读取中…',
654
667
  'approval.publish.changelog': '{version} 的更新日志',
668
+ 'approval.publish.changelogPending': '{version} 这一版会写进更新日志,随包发布',
655
669
  'approval.publish.changelogMissing': '这一版还没有更新日志({version}),发布会被拦下',
656
670
  'approval.publish.targetAuto': '按配置默认',
657
671
  'approval.publish.targetTeam': '团队源',
@@ -660,6 +674,15 @@ export const zh = {
660
674
  'approval.publish.targetGit': 'git 仓库',
661
675
  'approval.publish.targetMarket': '模块市场索引',
662
676
  'approval.publish.targetLocal': '留在本机',
677
+ 'approval.market.source': '索引源',
678
+ 'approval.market.url': '地址',
679
+ 'approval.market.action': '这次操作',
680
+ 'approval.market.policy': '当前状态',
681
+ 'approval.market.enable': '设为可发布',
682
+ 'approval.market.disable': '改回只读',
683
+ 'approval.market.writable': '可发布',
684
+ 'approval.market.readOnly': '仅读取模块列表',
685
+ 'approval.market.reading': '正在读取…',
663
686
  'markdown.copy': '复制',
664
687
  'markdown.copied': '已复制',
665
688
  'markdown.footnotes': '脚注',