dsh-cait 1.1.3 → 1.1.6

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/client/locales.js CHANGED
@@ -60,6 +60,14 @@
60
60
  'rail.filter.pending': '待译',
61
61
  'rail.filter.translated': '待审',
62
62
  'rail.filter.confirmed': '已确认',
63
+ 'rail.filter.risk': '重点审',
64
+ 'rail.clearPretranslated': '清理预翻译',
65
+ 'rail.clearPretranslatedHint': '清空未确认的预翻译与自动填充译文,保留人工草稿和已确认句段',
66
+ 'modal.confirm.clearPretranslatedTitle': '清理预翻译译文?',
67
+ 'modal.confirm.clearPretranslatedMessage': '将清空当前文档中 {count} 句未确认的预翻译译文(MT {mt}、TM {tm}、自动传播 {auto})。已确认句段和人工编辑的译文不会受影响;TM 中已保存的内容也不会删除。清理后这些句段回到未翻译状态,且无法撤销。',
68
+ 'modal.confirm.clearPretranslatedConfirm': '清理 {count} 句',
69
+ 'toast.pretranslatedCleared': '已清理 {count} 句预翻译译文',
70
+ 'toast.nothingToClear': '没有可清理的未确认预翻译',
63
71
  'rail.confirmAll': '全部确认',
64
72
  'rail.confirmAllHint': '把当前所有「待审」句段一次性确认并写入翻译记忆',
65
73
  'rail.confirmAllMessage': '将确认 {count} 个待审句段并写入翻译记忆,句段译文不会经过逐句复核。确定继续?',
@@ -201,6 +209,7 @@
201
209
  'modal.export.targetTxt': '纯文本',
202
210
  'modal.export.targetMd': 'Markdown',
203
211
  'modal.export.docx': 'Word DOCX',
212
+ 'modal.export.bilingualDocx': '双语审校稿 DOCX',
204
213
  'modal.export.docxGroup': '保留源格式',
205
214
  'modal.export.epub': 'EPUB 电子书',
206
215
  'modal.export.epubGroup': '保留源排版',
@@ -211,6 +220,10 @@
211
220
  'modal.export.vtt': 'WebVTT 字幕',
212
221
  'modal.export.po': 'PO 本地化',
213
222
  'modal.export.xliff': 'XLIFF 1.2',
223
+ 'modal.export.xliffReview': 'XLIFF 审校包',
224
+ 'modal.export.reviewImport': '回填审校包',
225
+ 'modal.export.reviewImportHint': '选择外部返回的 XLIFF 审校包,只更新能按 id 或源文对上的句段。',
226
+ 'toast.reviewApplied': '审校包已回填 {applied} 段,{unmatched} 段未匹配',
214
227
  'modal.export.xliff2': 'XLIFF 2.0',
215
228
  'modal.export.sdlxliff': 'SDL XLIFF(基础)',
216
229
  'modal.export.webGroup': '网页与结构化文本',
@@ -233,8 +246,16 @@
233
246
  'modal.settings.pre.collapseBlankLines': '合并连续空行',
234
247
  'modal.settings.tm': '翻译记忆',
235
248
  'modal.settings.fuzzy': '模糊匹配阈值',
249
+ 'modal.settings.fuzzyHint': '低于 70% 的匹配通常只共享虚词,改起来比重译更慢;70% 是主流 CAT 工具的默认值。',
250
+ 'modal.settings.resetDefault': '恢复默认',
236
251
  'modal.settings.limit': '返回匹配数',
237
252
  'modal.settings.mt': '机器翻译',
253
+ 'modal.settings.review': 'AI 审校模型',
254
+ 'modal.settings.reviewInherit': '跟随翻译模型(默认)',
255
+ 'modal.settings.reviewHint': '取消勾选后,AI 审校使用独立路由;预翻译仍使用上面的机器翻译路由。',
256
+ 'modal.settings.reviewProvider': '审校 provider 路由',
257
+ 'modal.settings.reviewInheritedHint': '当前与预翻译共用同一个 provider 和模型。',
258
+ 'modal.settings.reviewCustomHint': 'AI 审校使用独立路由,预翻译不受影响。',
238
259
  'modal.settings.provider': 'MT provider 路由',
239
260
  'modal.settings.routeHint': 'CAIT 只保存路由名和模型;API Key 由 DSH 凭据服务解析,CAIT 不接触。',
240
261
  'modal.settings.routeMissing': '已失效的路由',
@@ -295,6 +316,11 @@
295
316
  'library.import': '导入',
296
317
  'library.export': '导出',
297
318
  'library.clear': '清空',
319
+ 'tm.maintain.dedupe': '去重',
320
+ 'tm.maintain.prune': '清理空译文',
321
+ 'tm.maintain.dedupeHint': '将删除 {count} 条重复条目,保留最新一条。',
322
+ 'tm.maintain.pruneHint': '将删除 {count} 条空译文条目。',
323
+ 'tm.maintain.done': 'TM 维护完成:{count} 条',
298
324
  'library.newLibrary': '新建库',
299
325
  'library.rename': '重命名',
300
326
  'library.deleteLibrary': '删除库',
@@ -356,13 +382,14 @@
356
382
  'rail.propagateMessage': '把已有译文填到本文档中其它相同原文的句段(已确认的不会动)。',
357
383
  'toast.propagated': '已铺满 {count} 个句段。',
358
384
  'term.title': '术语候选',
359
- 'term.hint': '按出现次数与长度排序,点选后填入译文即可入库。',
385
+ 'term.hint': '候选包含重复出现的术语和只出现一次的专名;专名需人工确认后才入库。',
360
386
  'term.extract': '从文档提取术语',
361
- 'term.empty': '没有找到重复出现的候选术语。',
387
+ 'term.empty': '没有找到候选术语。',
362
388
  'term.add': '加入术语库',
363
389
  'term.added': '已加入 {added} 条术语。',
364
390
  'term.noDoc': '先打开一个文档再提取术语。',
365
391
  'term.inLibrary': '已有',
392
+ 'term.proper': '专名',
366
393
  }
367
394
 
368
395
  const EN = {
@@ -427,6 +454,14 @@
427
454
  'rail.filter.pending': 'To translate',
428
455
  'rail.filter.translated': 'To review',
429
456
  'rail.filter.confirmed': 'Confirmed',
457
+ 'rail.filter.risk': 'Needs review',
458
+ 'rail.clearPretranslated': 'Clear pretranslated',
459
+ 'rail.clearPretranslatedHint': 'Clear unconfirmed pretranslated and auto-filled targets; manual drafts and confirmed segments are kept',
460
+ 'modal.confirm.clearPretranslatedTitle': 'Clear pretranslated targets?',
461
+ 'modal.confirm.clearPretranslatedMessage': 'This will clear {count} unconfirmed pretranslated target(s) in the current document (MT {mt}, TM {tm}, auto-propagated {auto}). Confirmed segments and manually edited targets are not affected, and saved TM entries are not deleted. The cleared segments return to untranslated and this cannot be undone.',
462
+ 'modal.confirm.clearPretranslatedConfirm': 'Clear {count} segment(s)',
463
+ 'toast.pretranslatedCleared': 'Cleared {count} pretranslated target(s)',
464
+ 'toast.nothingToClear': 'No unconfirmed pretranslated targets to clear',
430
465
  'rail.confirmAll': 'Confirm all',
431
466
  'rail.confirmAllHint': 'Confirm every "To review" segment at once and write them to translation memory',
432
467
  'rail.confirmAllMessage': 'This confirms {count} segment(s) awaiting review and writes them to translation memory, without reviewing them one by one. Continue?',
@@ -568,6 +603,7 @@
568
603
  'modal.export.targetTxt': 'Plain text',
569
604
  'modal.export.targetMd': 'Markdown',
570
605
  'modal.export.docx': 'Word DOCX',
606
+ 'modal.export.bilingualDocx': 'Bilingual review DOCX',
571
607
  'modal.export.docxGroup': 'Preserve source formatting',
572
608
  'modal.export.epub': 'EPUB ebook',
573
609
  'modal.export.epubGroup': 'Preserve source layout',
@@ -578,6 +614,10 @@
578
614
  'modal.export.vtt': 'WebVTT subtitles',
579
615
  'modal.export.po': 'PO localization',
580
616
  'modal.export.xliff': 'XLIFF 1.2',
617
+ 'modal.export.xliffReview': 'XLIFF review package',
618
+ 'modal.export.reviewImport': 'Apply review package',
619
+ 'modal.export.reviewImportHint': 'Choose an XLIFF review package. Only segments matched by id or source are updated.',
620
+ 'toast.reviewApplied': 'Review applied: {applied} segments, {unmatched} unmatched',
581
621
  'modal.export.xliff2': 'XLIFF 2.0',
582
622
  'modal.export.sdlxliff': 'SDL XLIFF (basic)',
583
623
  'modal.export.webGroup': 'Web and structured text',
@@ -600,8 +640,17 @@
600
640
  'modal.settings.pre.collapseBlankLines': 'Merge consecutive blank lines',
601
641
  'modal.settings.tm': 'Translation memory',
602
642
  'modal.settings.fuzzy': 'Fuzzy-match threshold',
643
+ 'modal.settings.fuzzyHint':
644
+ 'Below 70% a match usually shares only function words, so editing it takes longer than retranslating. 70% is what mainstream CAT tools default to.',
645
+ 'modal.settings.resetDefault': 'Reset',
603
646
  'modal.settings.limit': 'Matches returned',
604
647
  'modal.settings.mt': 'Machine translation',
648
+ 'modal.settings.review': 'AI review model',
649
+ 'modal.settings.reviewInherit': 'Follow the translation model (default)',
650
+ 'modal.settings.reviewHint': 'Uncheck to give AI review its own route. Pre-translation keeps using the MT route above.',
651
+ 'modal.settings.reviewProvider': 'Review provider route',
652
+ 'modal.settings.reviewInheritedHint': 'Review currently shares the same provider and model as pre-translation.',
653
+ 'modal.settings.reviewCustomHint': 'AI review uses a separate route; pre-translation is unaffected.',
605
654
  'modal.settings.provider': 'MT provider route',
606
655
  'modal.settings.routeHint': 'CAIT stores only the route and model name; DSH resolves the API key, which CAIT never sees.',
607
656
  'modal.settings.routeMissing': 'Route no longer available',
@@ -662,6 +711,11 @@
662
711
  'library.import': 'Import',
663
712
  'library.export': 'Export',
664
713
  'library.clear': 'Clear',
714
+ 'tm.maintain.dedupe': 'Deduplicate',
715
+ 'tm.maintain.prune': 'Prune empty targets',
716
+ 'tm.maintain.dedupeHint': 'Delete {count} duplicate entries, keeping the newest.',
717
+ 'tm.maintain.pruneHint': 'Delete {count} entries with an empty target.',
718
+ 'tm.maintain.done': 'TM maintenance done: {count} entries',
665
719
  'library.newLibrary': 'New library',
666
720
  'library.rename': 'Rename',
667
721
  'library.deleteLibrary': 'Delete library',
@@ -723,13 +777,14 @@
723
777
  'rail.propagateMessage': 'Copy the existing translation to other segments with the same source. Confirmed segments are left alone.',
724
778
  'toast.propagated': 'Filled {count} segment(s).',
725
779
  'term.title': 'Terminology candidates',
726
- 'term.hint': 'Ranked by occurrences and length. Pick the real terms, type a translation, and add them.',
780
+ 'term.hint': 'Candidates include repeated terms and one-off proper names; names need a human decision before they enter the glossary.',
727
781
  'term.extract': 'Mine terms from the document',
728
- 'term.empty': 'No repeated candidate found.',
782
+ 'term.empty': 'No candidate found.',
729
783
  'term.add': 'Add to glossary',
730
784
  'term.added': 'Added {added} term(s).',
731
785
  'term.noDoc': 'Open a document before mining terms.',
732
786
  'term.inLibrary': 'in library',
787
+ 'term.proper': 'proper name',
733
788
  }
734
789
 
735
790
  const JA = {
@@ -794,6 +849,14 @@
794
849
  'rail.filter.pending': '未翻訳',
795
850
  'rail.filter.translated': '要確認',
796
851
  'rail.filter.confirmed': '確認済み',
852
+ 'rail.filter.risk': '重点確認',
853
+ 'rail.clearPretranslated': '事前翻訳をクリア',
854
+ 'rail.clearPretranslatedHint': '未確認の事前翻訳・自動反映の訳文を消去します。手動の下書きと確認済みセグメントは残します',
855
+ 'modal.confirm.clearPretranslatedTitle': '事前翻訳をクリアしますか?',
856
+ 'modal.confirm.clearPretranslatedMessage': '現在の文書で未確認の事前翻訳訳文 {count} 件(MT {mt}、TM {tm}、自動反映 {auto})を消去します。確認済みセグメントと手動編集の訳文は影響を受けず、TM に保存済みの内容も削除されません。消去後は未翻訳に戻り、元に戻せません。',
857
+ 'modal.confirm.clearPretranslatedConfirm': '{count} 件をクリア',
858
+ 'toast.pretranslatedCleared': '事前翻訳訳文を {count} 件クリアしました',
859
+ 'toast.nothingToClear': 'クリアできる未確認の事前翻訳はありません',
797
860
  'rail.confirmAll': 'まとめて確認',
798
861
  'rail.confirmAllHint': '「要確認」の文をまとめて確認し、翻訳メモリに書き込みます',
799
862
  'rail.confirmAllMessage': '要確認の {count} 文をまとめて確認し、翻訳メモリに書き込みます。1 文ずつ見直すことはありません。続けますか?',
@@ -935,6 +998,7 @@
935
998
  'modal.export.targetTxt': 'プレーンテキスト',
936
999
  'modal.export.targetMd': 'Markdown',
937
1000
  'modal.export.docx': 'Word DOCX',
1001
+ 'modal.export.bilingualDocx': 'バイリンガル校閲 DOCX',
938
1002
  'modal.export.docxGroup': '元の書式を保持',
939
1003
  'modal.export.epub': 'EPUB 電子書',
940
1004
  'modal.export.epubGroup': '元のレイアウトを保持',
@@ -945,6 +1009,10 @@
945
1009
  'modal.export.vtt': 'WebVTT 字幕',
946
1010
  'modal.export.po': 'PO ローカライズ',
947
1011
  'modal.export.xliff': 'XLIFF 1.2',
1012
+ 'modal.export.xliffReview': 'XLIFF 校閲パッケージ',
1013
+ 'modal.export.reviewImport': '校閲パッケージを反映',
1014
+ 'modal.export.reviewImportHint': '外部から返却された XLIFF を選択。id または原文が一致するセグメントだけ更新します。',
1015
+ 'toast.reviewApplied': '校閲を反映: {applied} セグメント、未一致 {unmatched}',
948
1016
  'modal.export.xliff2': 'XLIFF 2.0',
949
1017
  'modal.export.sdlxliff': 'SDL XLIFF(基本)',
950
1018
  'modal.export.webGroup': 'Web と構造化テキスト',
@@ -967,8 +1035,17 @@
967
1035
  'modal.settings.pre.collapseBlankLines': '連続する空行をまとめる',
968
1036
  'modal.settings.tm': '翻訳メモリ',
969
1037
  'modal.settings.fuzzy': 'あいまい一致のしきい値',
1038
+ 'modal.settings.fuzzyHint':
1039
+ '70% を下回る一致は機能語だけが重なることが多く、訳し直すより遅くなります。主流の CAT ツールも 70% を既定にしています。',
1040
+ 'modal.settings.resetDefault': '既定に戻す',
970
1041
  'modal.settings.limit': '返す一致件数',
971
1042
  'modal.settings.mt': '機械翻訳',
1043
+ 'modal.settings.review': 'AI レビューモデル',
1044
+ 'modal.settings.reviewInherit': '翻訳モデルに従う(デフォルト)',
1045
+ 'modal.settings.reviewHint': 'チェックを外すと AI レビューが独立したルートを使います。事前翻訳は上の MT ルートのままです。',
1046
+ 'modal.settings.reviewProvider': 'レビュー用プロバイダーのルート',
1047
+ 'modal.settings.reviewInheritedHint': '現在、レビューは事前翻訳と同じプロバイダーとモデルを共有しています。',
1048
+ 'modal.settings.reviewCustomHint': 'AI レビューは独立したルートを使います。事前翻訳には影響しません。',
972
1049
  'modal.settings.provider': 'MT プロバイダーのルート',
973
1050
  'modal.settings.routeHint': 'CAIT はルート名とモデル名だけを保存します。API キーは DSH の認証情報サービスが解決し、CAIT は触れません。',
974
1051
  'modal.settings.routeMissing': '利用できないルート',
@@ -1029,6 +1106,11 @@
1029
1106
  'library.import': 'インポート',
1030
1107
  'library.export': 'エクスポート',
1031
1108
  'library.clear': 'クリア',
1109
+ 'tm.maintain.dedupe': '重複排除',
1110
+ 'tm.maintain.prune': '空訳を整理',
1111
+ 'tm.maintain.dedupeHint': '{count} 件の重複を削除し、最新のみ残します。',
1112
+ 'tm.maintain.pruneHint': '空の訳文を持つ {count} 件を削除します。',
1113
+ 'tm.maintain.done': 'TM メンテナンス完了: {count} 件',
1032
1114
  'library.newLibrary': '新しいライブラリ',
1033
1115
  'library.rename': '名前を変更',
1034
1116
  'library.deleteLibrary': 'ライブラリを削除',
@@ -1090,18 +1172,514 @@
1090
1172
  'rail.propagateMessage': '同じ原文の他のセグメントに既存の訳文をコピーします。確定済みは変更しません。',
1091
1173
  'toast.propagated': '{count} 件のセグメントを埋めました。',
1092
1174
  'term.title': '用語候補',
1093
- 'term.hint': '出現回数と長さで並んでいます。実際の用語だけを選び、訳語を入れて登録してください。',
1175
+ 'term.hint': '繰り返し用語と一度だけ現れる固有名詞を候補にします。固有名詞は確認してから登録してください。',
1094
1176
  'term.extract': '文書から用語を抽出',
1095
- 'term.empty': '繰り返し現れる候補はありませんでした。',
1177
+ 'term.empty': '候補が見つかりませんでした。',
1096
1178
  'term.add': '用語集に追加',
1097
1179
  'term.added': '{added} 件の用語を追加しました。',
1098
1180
  'term.noDoc': '先に文書を開いてください。',
1099
1181
  'term.inLibrary': '登録済み',
1182
+ 'term.proper': '固有名詞',
1100
1183
  }
1101
1184
 
1185
+ // 1.1.4: brief, risk-aware QA, unconfirm and concordance. Kept in one place
1186
+ // so the three dictionaries cannot drift apart.
1187
+ Object.assign(ZH, {
1188
+ 'panel.qa': '检查',
1189
+ 'panel.concordance': '检索',
1190
+ 'panel.concordancePlaceholder': '在翻译记忆中检索…',
1191
+ 'panel.concordanceHint': '在已挂载的记忆库中检索源文或译文;点击结果写入当前句段的译文。',
1192
+ 'panel.noConcordance': '没有检索结果。',
1193
+ 'panel.searchConcordance': '检索',
1194
+ 'panel.brief': '文档 brief',
1195
+ 'panel.briefHint': '给译者和 agent 的领域、读者、语气与术语约束。',
1196
+ 'panel.termForbidden': '禁用',
1197
+ 'panel.termPreferred': '必用',
1198
+ 'brief.title': '文档 brief',
1199
+ 'brief.hint': '这些信息会注入预翻译和 agent 上下文;留空表示不限制。',
1200
+ 'brief.domain': '领域',
1201
+ 'brief.audience': '读者',
1202
+ 'brief.tone': '语气',
1203
+ 'brief.notes': '补充说明',
1204
+ 'brief.doNotTranslate': '不要翻译',
1205
+ 'brief.styleSample': '风格示例',
1206
+ 'brief.save': '保存 brief',
1207
+ 'brief.saved': 'brief 已保存',
1208
+ 'brief.empty': '尚未填写 brief',
1209
+ 'brief.placeholder.domain': '例如:法律、医疗、游戏',
1210
+ 'brief.placeholder.audience': '例如:终端用户、开发者',
1211
+ 'brief.placeholder.tone': '例如:正式、简洁、口语',
1212
+ 'brief.placeholder.notes': '术语偏好、格式要求、背景…',
1213
+ 'brief.placeholder.doNotTranslate': '每行一个词或短语',
1214
+ 'brief.placeholder.styleSample': '粘贴一段期望风格的译文…',
1215
+ 'editor.unconfirm': '撤销确认',
1216
+ 'editor.unconfirmHint': '回到待审状态,不改动翻译记忆',
1217
+ 'editor.undo': '撤销编辑',
1218
+ 'editor.redo': '重做编辑',
1219
+ 'editor.lock': '锁定',
1220
+ 'editor.unlock': '解锁',
1221
+ 'editor.locked': '已锁定',
1222
+ 'toast.locked': '已锁定句段',
1223
+ 'toast.unlocked': '已解锁句段',
1224
+ 'editor.brief': 'Brief',
1225
+ 'editor.risk': '风险',
1226
+ 'qa.title': '检查',
1227
+ 'qa.refresh': '重新检查',
1228
+ 'qa.empty': '没有发现问题。',
1229
+ 'qa.loading': '正在检查…',
1230
+ 'qa.review': 'AI 审校',
1231
+ 'qa.reviewing': '审校中…',
1232
+ 'qa.reviewTitle': 'AI 审校建议',
1233
+ 'qa.reviewEmpty': 'AI 没有发现需要改的句子。',
1234
+ 'qa.reviewApply': '填入建议',
1235
+ 'qa.high': '高',
1236
+ 'qa.medium': '中',
1237
+ 'qa.low': '低',
1238
+ 'qa.jump': '跳到句段',
1239
+ 'qa.risk': '风险',
1240
+ 'qa.code.TERM_FORBIDDEN': '禁用术语',
1241
+ 'qa.code.LENGTH_DRIFT': '长度异常',
1242
+ 'qa.fixCopy': '复制源文',
1243
+ 'qa.fixClear': '清空译文',
1244
+ 'qa.fixTerm': '插入术语',
1245
+ 'toast.qaFixed': '已修复该句,可继续检查',
1246
+ 'toast.unconfirmed': '已撤销确认,可继续编辑',
1247
+ 'toast.briefSaved': 'brief 已保存',
1248
+ 'toast.termForbidden': '这是禁用术语,不能插入',
1249
+ 'editor.resources': '资源',
1250
+ 'resources.title': '文档资源',
1251
+ 'resources.hint': '限定这篇文档读写哪些 TM 和术语库;不勾选“继承全局”时只使用下面选中的库。',
1252
+ 'resources.inheritTm': '继承全局 TM 挂载',
1253
+ 'resources.inheritGlossary': '继承全局术语库挂载',
1254
+ 'resources.tm': '翻译记忆',
1255
+ 'resources.glossary': '术语库',
1256
+ 'resources.defaultWrite': '默认写入',
1257
+ 'resources.followDefault': '跟随全局默认',
1258
+ 'resources.firstBound': '首个绑定库',
1259
+ 'resources.none': '未绑定(不读不写)',
1260
+ 'resources.empty': '没有可用的库。',
1261
+ 'resources.save': '保存资源',
1262
+ 'toast.resourcesSaved': '文档资源已保存',
1263
+ 'editor.analysis': '分析',
1264
+ 'analysis.title': '文档分析',
1265
+ 'analysis.hint': '按当前文档绑定的 TM 统计;匹配率用于报价参考。',
1266
+ 'analysis.words': '字数',
1267
+ 'analysis.characters': '字符',
1268
+ 'analysis.segments': '句段',
1269
+ 'analysis.duplicates': '重复句段',
1270
+ 'analysis.translated': '已有译文',
1271
+ 'analysis.confirmed': '已确认',
1272
+ 'analysis.ice': 'ICE / 上下文',
1273
+ 'analysis.exact': '完全匹配',
1274
+ 'analysis.fuzzy85': '85–99%',
1275
+ 'analysis.fuzzy70': '70–84%',
1276
+ 'analysis.new': '新句段',
1277
+ 'analysis.matchRate': '匹配率',
1278
+ 'analysis.leverage': '加权 leverage',
1279
+ 'analysis.exportCsv': '导出 CSV',
1280
+ 'analysis.exportJson': '导出 JSON',
1281
+ 'analysis.close': '关闭',
1282
+ 'replace.open': '查找替换',
1283
+ 'replace.title': '查找替换',
1284
+ 'replace.hint': '在原文或译文中查找并替换;应用前先预览影响范围。',
1285
+ 'replace.query': '查找',
1286
+ 'replace.queryPlaceholder': '要查找的文本',
1287
+ 'replace.replacement': '替换为',
1288
+ 'replace.replacementPlaceholder': '留空表示删除',
1289
+ 'replace.scope': '范围',
1290
+ 'replace.scope.target': '仅译文',
1291
+ 'replace.scope.source': '仅原文',
1292
+ 'replace.scope.both': '原文和译文',
1293
+ 'replace.matchCase': '区分大小写',
1294
+ 'replace.regex': '正则表达式',
1295
+ 'replace.preview': '预览',
1296
+ 'replace.apply': '应用替换',
1297
+ 'replace.undo': '撤销上次替换',
1298
+ 'replace.results': '命中 {count} 处,涉及 {segments} 个句段',
1299
+ 'replace.truncated': '结果较多,仅显示前 200 条。',
1300
+ 'replace.noResults': '没有命中。',
1301
+ 'replace.field.source': '原文',
1302
+ 'replace.field.target': '译文',
1303
+ 'toast.replaced': '已替换 {count} 处',
1304
+ 'toast.replaceUndone': '已撤销替换',
1305
+ 'palette.title': '命令面板',
1306
+ 'palette.placeholder': '输入命令…',
1307
+ 'palette.empty': '没有匹配的命令。',
1308
+ 'palette.footer': '↑↓ 选择 · Enter 执行 · Esc 关闭 · Ctrl+K 打开',
1309
+ 'cmd.new': '新建文档',
1310
+ 'cmd.newHint': '从文本或文件开始',
1311
+ 'cmd.import': '导入文件',
1312
+ 'cmd.export': '导出',
1313
+ 'cmd.pretranslate': '预翻译',
1314
+ 'cmd.replace': '查找替换',
1315
+ 'cmd.brief': '文档 brief',
1316
+ 'cmd.resources': '文档资源',
1317
+ 'cmd.analysis': '文档分析',
1318
+ 'cmd.clearPretranslated': '清理预翻译',
1319
+ 'cmd.notes': '句段备注',
1320
+ 'cmd.review': 'AI 审校当前文档',
1321
+ 'editor.notes': '备注',
1322
+ 'notes.title': '句段备注',
1323
+ 'notes.hint': '备注只保存在本文档,不会写入 TM。',
1324
+ 'notes.empty': '还没有备注。',
1325
+ 'notes.placeholder': '写下审校说明、术语疑问或给 agent 的提示…',
1326
+ 'notes.add': '添加备注',
1327
+ 'notes.save': '保存',
1328
+ 'notes.cancel': '取消',
1329
+ 'notes.edit': '编辑',
1330
+ 'notes.delete': '删除',
1331
+ 'notes.user': '你',
1332
+ 'toast.noteSaved': '备注已保存',
1333
+ 'toast.noteDeleted': '备注已删除',
1334
+ 'cmd.documents': '文档工作区',
1335
+ 'cmd.libraries': '库管理',
1336
+ 'cmd.align': '对齐',
1337
+ 'cmd.settings': '设置',
1338
+ })
1339
+ Object.assign(EN, {
1340
+ 'panel.qa': 'Checks',
1341
+ 'panel.concordance': 'Concordance',
1342
+ 'panel.concordancePlaceholder': 'Search translation memory…',
1343
+ 'panel.concordanceHint': 'Search source or target across mounted memories; click a result to use its target in the current segment.',
1344
+ 'panel.noConcordance': 'No matches.',
1345
+ 'panel.searchConcordance': 'Search',
1346
+ 'panel.brief': 'Document brief',
1347
+ 'panel.briefHint': 'Domain, audience, tone and terminology guidance for translators and agents.',
1348
+ 'panel.termForbidden': 'Forbidden',
1349
+ 'panel.termPreferred': 'Required',
1350
+ 'brief.title': 'Document brief',
1351
+ 'brief.hint': 'Injected into pre-translation and agent context. Empty fields mean no constraint.',
1352
+ 'brief.domain': 'Domain',
1353
+ 'brief.audience': 'Audience',
1354
+ 'brief.tone': 'Tone',
1355
+ 'brief.notes': 'Notes',
1356
+ 'brief.doNotTranslate': 'Do not translate',
1357
+ 'brief.styleSample': 'Style sample',
1358
+ 'brief.save': 'Save brief',
1359
+ 'brief.saved': 'Brief saved',
1360
+ 'brief.empty': 'No brief yet',
1361
+ 'brief.placeholder.domain': 'e.g. legal, medical, games',
1362
+ 'brief.placeholder.audience': 'e.g. end users, developers',
1363
+ 'brief.placeholder.tone': 'e.g. formal, concise, conversational',
1364
+ 'brief.placeholder.notes': 'Terminology preferences, formatting requirements, background…',
1365
+ 'brief.placeholder.doNotTranslate': 'One term or phrase per line',
1366
+ 'brief.placeholder.styleSample': 'Paste a sample of the desired style…',
1367
+ 'editor.unconfirm': 'Unconfirm',
1368
+ 'editor.unconfirmHint': 'Return to review without changing translation memory',
1369
+ 'editor.undo': 'Undo edit',
1370
+ 'editor.redo': 'Redo edit',
1371
+ 'editor.lock': 'Lock',
1372
+ 'editor.unlock': 'Unlock',
1373
+ 'editor.locked': 'Locked',
1374
+ 'toast.locked': 'Segment locked',
1375
+ 'toast.unlocked': 'Segment unlocked',
1376
+ 'editor.brief': 'Brief',
1377
+ 'editor.risk': 'Risk',
1378
+ 'qa.title': 'Checks',
1379
+ 'qa.refresh': 'Re-run checks',
1380
+ 'qa.empty': 'No issues found.',
1381
+ 'qa.loading': 'Running checks…',
1382
+ 'qa.review': 'AI review',
1383
+ 'qa.reviewing': 'Reviewing…',
1384
+ 'qa.reviewTitle': 'AI review suggestions',
1385
+ 'qa.reviewEmpty': 'The model found no sentence worth changing.',
1386
+ 'qa.reviewApply': 'Use suggestion',
1387
+ 'qa.high': 'High',
1388
+ 'qa.medium': 'Medium',
1389
+ 'qa.low': 'Low',
1390
+ 'qa.jump': 'Jump to segment',
1391
+ 'qa.risk': 'Risk',
1392
+ 'qa.code.TERM_FORBIDDEN': 'Forbidden term',
1393
+ 'qa.code.LENGTH_DRIFT': 'Length drift',
1394
+ 'qa.fixCopy': 'Copy source',
1395
+ 'qa.fixClear': 'Clear target',
1396
+ 'qa.fixTerm': 'Insert term',
1397
+ 'toast.qaFixed': 'Segment fixed; checks refreshed',
1398
+ 'toast.unconfirmed': 'Confirmation revoked; editing is enabled again',
1399
+ 'toast.briefSaved': 'Brief saved',
1400
+ 'toast.termForbidden': 'This is a forbidden term and cannot be inserted',
1401
+ 'editor.resources': 'Resources',
1402
+ 'resources.title': 'Document resources',
1403
+ 'resources.hint': 'Limit which translation memories and glossaries this document reads and writes. Without inheritance, only the selected libraries are used.',
1404
+ 'resources.inheritTm': 'Inherit global TM mounts',
1405
+ 'resources.inheritGlossary': 'Inherit global glossary mounts',
1406
+ 'resources.tm': 'Translation memories',
1407
+ 'resources.glossary': 'Glossaries',
1408
+ 'resources.defaultWrite': 'Default write',
1409
+ 'resources.followDefault': 'Follow global default',
1410
+ 'resources.firstBound': 'First bound library',
1411
+ 'resources.none': 'None (no read, no write)',
1412
+ 'resources.empty': 'No libraries available.',
1413
+ 'resources.save': 'Save resources',
1414
+ 'toast.resourcesSaved': 'Document resources saved',
1415
+ 'editor.analysis': 'Analysis',
1416
+ 'analysis.title': 'Document analysis',
1417
+ 'analysis.hint': 'Counted against the memory bound to this document; match rate is a quoting aid.',
1418
+ 'analysis.words': 'Words',
1419
+ 'analysis.characters': 'Characters',
1420
+ 'analysis.segments': 'Segments',
1421
+ 'analysis.duplicates': 'Duplicate segments',
1422
+ 'analysis.translated': 'With target',
1423
+ 'analysis.confirmed': 'Confirmed',
1424
+ 'analysis.ice': 'ICE / context',
1425
+ 'analysis.exact': 'Exact',
1426
+ 'analysis.fuzzy85': '85–99%',
1427
+ 'analysis.fuzzy70': '70–84%',
1428
+ 'analysis.new': 'New',
1429
+ 'analysis.matchRate': 'Match rate',
1430
+ 'analysis.leverage': 'Weighted leverage',
1431
+ 'analysis.exportCsv': 'Export CSV',
1432
+ 'analysis.exportJson': 'Export JSON',
1433
+ 'analysis.close': 'Close',
1434
+ 'replace.open': 'Find & replace',
1435
+ 'replace.title': 'Find & replace',
1436
+ 'replace.hint': 'Find and replace in source or target. Preview the impact before applying.',
1437
+ 'replace.query': 'Find',
1438
+ 'replace.queryPlaceholder': 'Text to find',
1439
+ 'replace.replacement': 'Replace with',
1440
+ 'replace.replacementPlaceholder': 'Leave empty to delete',
1441
+ 'replace.scope': 'Scope',
1442
+ 'replace.scope.target': 'Target only',
1443
+ 'replace.scope.source': 'Source only',
1444
+ 'replace.scope.both': 'Source and target',
1445
+ 'replace.matchCase': 'Match case',
1446
+ 'replace.regex': 'Regular expression',
1447
+ 'replace.preview': 'Preview',
1448
+ 'replace.apply': 'Apply replacement',
1449
+ 'replace.undo': 'Undo last replacement',
1450
+ 'replace.results': '{count} matches across {segments} segments',
1451
+ 'replace.truncated': 'Too many matches; showing the first 200.',
1452
+ 'replace.noResults': 'No matches.',
1453
+ 'replace.field.source': 'Source',
1454
+ 'replace.field.target': 'Target',
1455
+ 'toast.replaced': 'Replaced {count} occurrences',
1456
+ 'toast.replaceUndone': 'Replacement undone',
1457
+ 'palette.title': 'Command palette',
1458
+ 'palette.placeholder': 'Type a command…',
1459
+ 'palette.empty': 'No matching commands.',
1460
+ 'palette.footer': '↑↓ select · Enter run · Esc close · Ctrl+K open',
1461
+ 'cmd.new': 'New document',
1462
+ 'cmd.newHint': 'Start from text or a file',
1463
+ 'cmd.import': 'Import file',
1464
+ 'cmd.export': 'Export',
1465
+ 'cmd.pretranslate': 'Pre-translate',
1466
+ 'cmd.replace': 'Find & replace',
1467
+ 'cmd.brief': 'Document brief',
1468
+ 'cmd.resources': 'Document resources',
1469
+ 'cmd.analysis': 'Document analysis',
1470
+ 'cmd.clearPretranslated': 'Clear pre-translated targets',
1471
+ 'cmd.notes': 'Segment notes',
1472
+ 'cmd.review': 'AI review this document',
1473
+ 'editor.notes': 'Notes',
1474
+ 'notes.title': 'Segment notes',
1475
+ 'notes.hint': 'Notes stay in this document and are never written to TM.',
1476
+ 'notes.empty': 'No notes yet.',
1477
+ 'notes.placeholder': 'Review comments, terminology questions, or hints for the agent…',
1478
+ 'notes.add': 'Add note',
1479
+ 'notes.save': 'Save',
1480
+ 'notes.cancel': 'Cancel',
1481
+ 'notes.edit': 'Edit',
1482
+ 'notes.delete': 'Delete',
1483
+ 'notes.user': 'You',
1484
+ 'toast.noteSaved': 'Note saved',
1485
+ 'toast.noteDeleted': 'Note deleted',
1486
+ 'cmd.documents': 'Document workspace',
1487
+ 'cmd.libraries': 'Library manager',
1488
+ 'cmd.align': 'Alignment',
1489
+ 'cmd.settings': 'Settings',
1490
+ })
1491
+ Object.assign(JA, {
1492
+ 'panel.qa': 'チェック',
1493
+ 'panel.concordance': '検索',
1494
+ 'panel.concordancePlaceholder': '翻訳メモリを検索…',
1495
+ 'panel.concordanceHint': 'マウント中の TM を原文・訳文で検索し、結果をクリックすると現在のセグメントの訳文に書き込みます。',
1496
+ 'panel.noConcordance': '一致なし。',
1497
+ 'panel.searchConcordance': '検索',
1498
+ 'panel.brief': '文書ブリーフ',
1499
+ 'panel.briefHint': '译者と agent のための分野・読者・トーン・用語指示。',
1500
+ 'panel.termForbidden': '禁止',
1501
+ 'panel.termPreferred': '必須',
1502
+ 'brief.title': '文書ブリーフ',
1503
+ 'brief.hint': 'この情報は事前翻訳と agent のコンテキストに渡されます。空欄は制約なし。',
1504
+ 'brief.domain': '分野',
1505
+ 'brief.audience': '読者',
1506
+ 'brief.tone': 'トーン',
1507
+ 'brief.notes': '補足',
1508
+ 'brief.doNotTranslate': '翻訳しない語句',
1509
+ 'brief.styleSample': 'スタイル例',
1510
+ 'brief.save': 'ブリーフを保存',
1511
+ 'brief.saved': 'ブリーフを保存しました',
1512
+ 'brief.empty': 'ブリーフは未入力です',
1513
+ 'brief.placeholder.domain': '例:法律、医療、ゲーム',
1514
+ 'brief.placeholder.audience': '例:エンドユーザー、開発者',
1515
+ 'brief.placeholder.tone': '例:正式、簡潔、会話的',
1516
+ 'brief.placeholder.notes': '用語の好み、書式、背景…',
1517
+ 'brief.placeholder.doNotTranslate': '1 行に 1 語句',
1518
+ 'brief.placeholder.styleSample': '希望するスタイルの訳文を貼り付け…',
1519
+ 'editor.unconfirm': '確認を取り消す',
1520
+ 'editor.unconfirmHint': '確認だけを解除し、TM は変更しません',
1521
+ 'editor.undo': '編集を元に戻す',
1522
+ 'editor.redo': '編集をやり直す',
1523
+ 'editor.lock': 'ロック',
1524
+ 'editor.unlock': 'ロック解除',
1525
+ 'editor.locked': 'ロック中',
1526
+ 'toast.locked': 'セグメントをロックしました',
1527
+ 'toast.unlocked': 'セグメントのロックを解除しました',
1528
+ 'editor.brief': 'ブリーフ',
1529
+ 'editor.risk': 'リスク',
1530
+ 'qa.title': 'チェック',
1531
+ 'qa.refresh': '再チェック',
1532
+ 'qa.empty': '問題はありません。',
1533
+ 'qa.loading': 'チェック中…',
1534
+ 'qa.review': 'AI 校閲',
1535
+ 'qa.reviewing': '校閲中…',
1536
+ 'qa.reviewTitle': 'AI 校閲の提案',
1537
+ 'qa.reviewEmpty': 'モデルが修正すべき文を見つけませんでした。',
1538
+ 'qa.reviewApply': '提案を反映',
1539
+ 'qa.high': '高',
1540
+ 'qa.medium': '中',
1541
+ 'qa.low': '低',
1542
+ 'qa.jump': 'セグメントへ',
1543
+ 'qa.risk': 'リスク',
1544
+ 'qa.code.TERM_FORBIDDEN': '禁止用語',
1545
+ 'qa.code.LENGTH_DRIFT': '長さの不一致',
1546
+ 'qa.fixCopy': '原文をコピー',
1547
+ 'qa.fixClear': '訳文を空にする',
1548
+ 'qa.fixTerm': '用語を挿入',
1549
+ 'toast.qaFixed': '修正しました。チェックを更新しました',
1550
+ 'toast.unconfirmed': '確認を取り消しました。編集を続けられます',
1551
+ 'toast.briefSaved': 'ブリーフを保存しました',
1552
+ 'toast.termForbidden': '禁止用語のため挿入できません',
1553
+ 'editor.resources': 'リソース',
1554
+ 'resources.title': '文書リソース',
1555
+ 'resources.hint': 'この文書が読み書きする TM と用語集を限定します。「グローバルを継承」を外すと、下で選んだライブラリだけを使います。',
1556
+ 'resources.inheritTm': 'グローバル TM マウントを継承',
1557
+ 'resources.inheritGlossary': 'グローバル用語集マウントを継承',
1558
+ 'resources.tm': '翻訳メモリ',
1559
+ 'resources.glossary': '用語集',
1560
+ 'resources.defaultWrite': '既定の書き込み先',
1561
+ 'resources.followDefault': 'グローバル既定に従う',
1562
+ 'resources.firstBound': '最初のバインド先',
1563
+ 'resources.none': '未バインド(読み書きなし)',
1564
+ 'resources.empty': '利用できるライブラリがありません。',
1565
+ 'resources.save': 'リソースを保存',
1566
+ 'toast.resourcesSaved': '文書リソースを保存しました',
1567
+ 'editor.analysis': '分析',
1568
+ 'analysis.title': '文書分析',
1569
+ 'analysis.hint': 'この文書に紐づく TM で集計します。マッチ率は見積もりの参考値です。',
1570
+ 'analysis.words': '語数',
1571
+ 'analysis.characters': '文字数',
1572
+ 'analysis.segments': 'セグメント',
1573
+ 'analysis.duplicates': '重複セグメント',
1574
+ 'analysis.translated': '訳文あり',
1575
+ 'analysis.confirmed': '確認済み',
1576
+ 'analysis.ice': 'ICE / コンテキスト',
1577
+ 'analysis.exact': '完全一致',
1578
+ 'analysis.fuzzy85': '85–99%',
1579
+ 'analysis.fuzzy70': '70–84%',
1580
+ 'analysis.new': '新規',
1581
+ 'analysis.matchRate': 'マッチ率',
1582
+ 'analysis.leverage': '加重レバレッジ',
1583
+ 'analysis.exportCsv': 'CSV を書き出す',
1584
+ 'analysis.exportJson': 'JSON を書き出す',
1585
+ 'analysis.close': '閉じる',
1586
+ 'replace.open': '検索と置換',
1587
+ 'replace.title': '検索と置換',
1588
+ 'replace.hint': '原文または訳文を検索して置換します。適用前に影響範囲をプレビューしてください。',
1589
+ 'replace.query': '検索',
1590
+ 'replace.queryPlaceholder': '検索するテキスト',
1591
+ 'replace.replacement': '置換後',
1592
+ 'replace.replacementPlaceholder': '空欄なら削除',
1593
+ 'replace.scope': '範囲',
1594
+ 'replace.scope.target': '訳文のみ',
1595
+ 'replace.scope.source': '原文のみ',
1596
+ 'replace.scope.both': '原文と訳文',
1597
+ 'replace.matchCase': '大文字と小文字を区別',
1598
+ 'replace.regex': '正規表現',
1599
+ 'replace.preview': 'プレビュー',
1600
+ 'replace.apply': '置換を適用',
1601
+ 'replace.undo': '直前の置換を元に戻す',
1602
+ 'replace.results': '{count} 件、{segments} セグメント',
1603
+ 'replace.truncated': '件数が多いため先頭 200 件のみ表示します。',
1604
+ 'replace.noResults': '一致なし。',
1605
+ 'replace.field.source': '原文',
1606
+ 'replace.field.target': '訳文',
1607
+ 'toast.replaced': '{count} 件置換しました',
1608
+ 'toast.replaceUndone': '置換を元に戻しました',
1609
+ 'palette.title': 'コマンドパレット',
1610
+ 'palette.placeholder': 'コマンドを入力…',
1611
+ 'palette.empty': '一致するコマンドがありません。',
1612
+ 'palette.footer': '↑↓ 選択 · Enter 実行 · Esc 閉じる · Ctrl+K 開く',
1613
+ 'cmd.new': '新規文書',
1614
+ 'cmd.newHint': 'テキストまたはファイルから開始',
1615
+ 'cmd.import': 'ファイルをインポート',
1616
+ 'cmd.export': 'エクスポート',
1617
+ 'cmd.pretranslate': '事前翻訳',
1618
+ 'cmd.replace': '検索と置換',
1619
+ 'cmd.brief': '文書ブリーフ',
1620
+ 'cmd.resources': '文書リソース',
1621
+ 'cmd.analysis': '文書分析',
1622
+ 'cmd.clearPretranslated': '事前翻訳をクリア',
1623
+ 'cmd.notes': 'セグメントメモ',
1624
+ 'cmd.review': 'この文書を AI 校閲',
1625
+ 'editor.notes': 'メモ',
1626
+ 'notes.title': 'セグメントメモ',
1627
+ 'notes.hint': 'メモはこの文書にのみ保存され、TM には書き込まれません。',
1628
+ 'notes.empty': 'メモはまだありません。',
1629
+ 'notes.placeholder': 'レビューコメント、用語の疑問、agent へのヒント…',
1630
+ 'notes.add': 'メモを追加',
1631
+ 'notes.save': '保存',
1632
+ 'notes.cancel': 'キャンセル',
1633
+ 'notes.edit': '編集',
1634
+ 'notes.delete': '削除',
1635
+ 'notes.user': 'あなた',
1636
+ 'toast.noteSaved': 'メモを保存しました',
1637
+ 'toast.noteDeleted': 'メモを削除しました',
1638
+ 'cmd.documents': '文書ワークスペース',
1639
+ 'cmd.libraries': 'ライブラリ管理',
1640
+ 'cmd.align': 'アラインメント',
1641
+ 'cmd.settings': '設定',
1642
+ })
1643
+
1102
1644
  // UI languages offered by the in-app switch. 'auto' follows the DSH locale
1103
1645
  // through the bound DSH translator; the other entries use the dictionaries
1104
1646
  // above. Labels are native names, except 'auto', which is localized.
1647
+ Object.assign(ZH, {
1648
+ 'editor.merge': '合并下一段',
1649
+ 'editor.split': '拆分',
1650
+ 'editor.mergeHint': '把当前句段和同一段落的下一句合并;合并后确认状态会重置。',
1651
+ 'editor.splitHint': '按译文光标位置大致拆分当前句段;拆分后两侧都需要重新确认。',
1652
+ 'toast.merged': '已合并句段',
1653
+ 'toast.split': '已拆分句段',
1654
+ 'modal.confirm.mergeTitle': '合并句段',
1655
+ 'modal.confirm.merge': '合并会新建一个句段,并丢失两条原文各自的确认状态。确定继续?',
1656
+ 'modal.confirm.splitTitle': '拆分句段',
1657
+ 'modal.confirm.split': '拆分后两侧都会变成未确认状态,译文按比例切开。确定继续?',
1658
+ })
1659
+ Object.assign(EN, {
1660
+ 'editor.merge': 'Merge next',
1661
+ 'editor.split': 'Split',
1662
+ 'editor.mergeHint': 'Merge this segment with the next one in the same paragraph; confirmation resets.',
1663
+ 'editor.splitHint': 'Split at the target cursor position; both halves need confirmation again.',
1664
+ 'toast.merged': 'Segment merged',
1665
+ 'toast.split': 'Segment split',
1666
+ 'modal.confirm.mergeTitle': 'Merge segments',
1667
+ 'modal.confirm.merge': 'Merging creates a new segment and discards the confirmation state of both originals. Continue?',
1668
+ 'modal.confirm.splitTitle': 'Split segment',
1669
+ 'modal.confirm.split': 'Both halves become unconfirmed and the target is split proportionally. Continue?',
1670
+ })
1671
+ Object.assign(JA, {
1672
+ 'editor.merge': '次を結合',
1673
+ 'editor.split': '分割',
1674
+ 'editor.mergeHint': '同じ段落の次のセグメントと結合します。確認状態はリセットされます。',
1675
+ 'editor.splitHint': '訳文のカーソル位置を目安に分割します。両側とも再確認が必要です。',
1676
+ 'toast.merged': 'セグメントを結合しました',
1677
+ 'toast.split': 'セグメントを分割しました',
1678
+ 'modal.confirm.mergeTitle': 'セグメントを結合',
1679
+ 'modal.confirm.merge': '結合すると新しいセグメントになり、元の確認状態は失われます。続行しますか?',
1680
+ 'modal.confirm.splitTitle': 'セグメントを分割',
1681
+ 'modal.confirm.split': '分割後は両側とも未確認になり、訳文は比率で分割されます。続行しますか?',
1682
+ })
1105
1683
  const UI_LANGS = [
1106
1684
  ['auto', ''],
1107
1685
  ['zh', '简体中文'],