@celljs/ta-web 4.19.0 → 4.21.0
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/esm/browser/account/device-account.d.ts +65 -1
- package/esm/browser/account/device-account.js +206 -6
- package/esm/browser/assistant/assistant-chat-list.js +2 -1
- package/esm/browser/assistant/call-turn-end.d.ts +55 -0
- package/esm/browser/assistant/call-turn-end.js +68 -0
- package/esm/browser/assistant/realtime-voice.js +3 -3
- package/esm/browser/assistant/voice-call.d.ts +19 -28
- package/esm/browser/assistant/voice-call.js +64 -51
- package/esm/browser/components/account-menu.d.ts +9 -4
- package/esm/browser/components/account-menu.js +59 -20
- package/esm/browser/components/account-view.d.ts +33 -7
- package/esm/browser/components/account-view.js +140 -79
- package/esm/browser/components/app-view.js +2 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/cloud-sign-in-view.js +4 -1
- package/esm/browser/components/dino-look.d.ts +9 -1
- package/esm/browser/components/dino-look.js +46 -1
- package/esm/browser/components/environment-view.js +12 -1
- package/esm/browser/components/face-pictures.d.ts +10 -0
- package/esm/browser/components/face-pictures.js +24 -0
- package/esm/browser/components/face.d.ts +4 -1
- package/esm/browser/components/face.js +16 -1
- package/esm/browser/components/host-view.d.ts +15 -8
- package/esm/browser/components/host-view.js +23 -70
- package/esm/browser/components/me-view.d.ts +2 -2
- package/esm/browser/components/me-view.js +7 -6
- package/esm/browser/components/picture-dialog.d.ts +18 -0
- package/esm/browser/components/picture-dialog.js +116 -0
- package/esm/browser/components/profile-view.d.ts +11 -0
- package/esm/browser/components/profile-view.js +85 -0
- package/esm/browser/components/workbench-view.js +42 -7
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-components.d.ts +2 -2
- package/esm/browser/extension/web-api-home.d.ts +13 -0
- package/esm/browser/extension/web-api-home.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +4 -4
- package/esm/browser/extension/web-extension-context.js +2 -1
- package/esm/browser/extension/web-home.d.ts +8 -0
- package/esm/browser/extension/web-home.js +20 -0
- package/esm/browser/gateway/console-limits.d.ts +15 -0
- package/esm/browser/gateway/console-limits.js +2 -2
- package/esm/browser/gateway/console-tenant.js +33 -2
- package/esm/browser/gateway/console-updates.d.ts +12 -0
- package/esm/browser/gateway/console-updates.js +76 -0
- package/esm/browser/gateway/console-util.d.ts +7 -1
- package/esm/browser/gateway/console-util.js +18 -0
- package/esm/browser/gateway/console-view.js +9 -2
- package/esm/browser/i18n/locales.d.ts +55 -3
- package/esm/browser/i18n/locales.js +9 -3
- package/esm/browser/i18n/messages-all.d.ts +7 -0
- package/esm/browser/i18n/messages-all.js +14 -0
- package/esm/browser/i18n/messages-ja.js +54 -4
- package/esm/browser/i18n/messages-zh-tw.js +54 -4
- package/esm/browser/i18n/messages.d.ts +56 -8
- package/esm/browser/i18n/messages.js +141 -19
- package/esm/browser/i18n/use-t.js +4 -3
- package/esm/browser/settings/settings.js +3 -1
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +2 -1
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +6 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +11 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +1 -0
- package/esm/browser/util/picture.d.ts +5 -0
- package/esm/browser/util/picture.js +43 -0
- package/esm/browser/util/turn-end.d.ts +8 -0
- package/esm/browser/util/turn-end.js +78 -35
- package/esm/browser/workbench-hosts.d.ts +4 -1
- package/esm/browser/workbench-hosts.js +17 -0
- package/esm/browser/workbench-protocol.d.ts +8 -0
- package/lib/browser/account/device-account.d.ts +65 -1
- package/lib/browser/account/device-account.js +206 -6
- package/lib/browser/assistant/assistant-chat-list.js +2 -1
- package/lib/browser/assistant/call-turn-end.d.ts +56 -0
- package/lib/browser/assistant/call-turn-end.js +72 -0
- package/lib/browser/assistant/realtime-voice.js +3 -3
- package/lib/browser/assistant/voice-call.d.ts +19 -28
- package/lib/browser/assistant/voice-call.js +67 -54
- package/lib/browser/components/account-menu.d.ts +9 -4
- package/lib/browser/components/account-menu.js +57 -18
- package/lib/browser/components/account-view.d.ts +33 -7
- package/lib/browser/components/account-view.js +142 -77
- package/lib/browser/components/app-view.js +1 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/cloud-sign-in-view.js +4 -1
- package/lib/browser/components/dino-look.d.ts +9 -1
- package/lib/browser/components/dino-look.js +48 -1
- package/lib/browser/components/environment-view.js +11 -0
- package/lib/browser/components/face-pictures.d.ts +11 -0
- package/lib/browser/components/face-pictures.js +60 -0
- package/lib/browser/components/face.d.ts +4 -1
- package/lib/browser/components/face.js +16 -1
- package/lib/browser/components/host-view.d.ts +15 -8
- package/lib/browser/components/host-view.js +22 -68
- package/lib/browser/components/me-view.d.ts +2 -2
- package/lib/browser/components/me-view.js +7 -6
- package/lib/browser/components/picture-dialog.d.ts +19 -0
- package/lib/browser/components/picture-dialog.js +153 -0
- package/lib/browser/components/profile-view.d.ts +12 -0
- package/lib/browser/components/profile-view.js +123 -0
- package/lib/browser/components/workbench-view.js +39 -4
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-components.d.ts +2 -2
- package/lib/browser/extension/web-api-home.d.ts +14 -0
- package/lib/browser/extension/web-api-home.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +4 -4
- package/lib/browser/extension/web-extension-context.js +2 -1
- package/lib/browser/extension/web-home.d.ts +8 -0
- package/lib/browser/extension/web-home.js +54 -1
- package/lib/browser/gateway/console-limits.d.ts +15 -0
- package/lib/browser/gateway/console-limits.js +2 -0
- package/lib/browser/gateway/console-tenant.js +32 -1
- package/lib/browser/gateway/console-updates.d.ts +13 -0
- package/lib/browser/gateway/console-updates.js +113 -0
- package/lib/browser/gateway/console-util.d.ts +7 -1
- package/lib/browser/gateway/console-util.js +18 -0
- package/lib/browser/gateway/console-view.js +9 -2
- package/lib/browser/i18n/locales.d.ts +55 -3
- package/lib/browser/i18n/locales.js +8 -2
- package/lib/browser/i18n/messages-all.d.ts +8 -0
- package/lib/browser/i18n/messages-all.js +17 -0
- package/lib/browser/i18n/messages-ja.js +54 -4
- package/lib/browser/i18n/messages-zh-tw.js +54 -4
- package/lib/browser/i18n/messages.d.ts +56 -8
- package/lib/browser/i18n/messages.js +143 -21
- package/lib/browser/i18n/use-t.js +4 -3
- package/lib/browser/settings/settings.js +3 -1
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +2 -1
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +6 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +11 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +1 -0
- package/lib/browser/util/picture.d.ts +6 -0
- package/lib/browser/util/picture.js +46 -0
- package/lib/browser/util/turn-end.d.ts +8 -0
- package/lib/browser/util/turn-end.js +78 -35
- package/lib/browser/workbench-hosts.d.ts +4 -1
- package/lib/browser/workbench-hosts.js +17 -0
- package/lib/browser/workbench-protocol.d.ts +8 -0
- package/package.json +7 -7
|
@@ -379,6 +379,36 @@ exports.JA_MESSAGES = {
|
|
|
379
379
|
'ta.console.manage': '管理',
|
|
380
380
|
'ta.console.sandbox': 'サンドボックス',
|
|
381
381
|
'ta.console.about': '基本情報',
|
|
382
|
+
'ta.console.updatesAvailable': '{count} 台の Ta を {version} に更新できます',
|
|
383
|
+
'ta.console.updateAll': 'すべて更新',
|
|
384
|
+
'ta.console.updateAllConfirm': '{count} 台の Ta を {version} に更新しますか?',
|
|
385
|
+
'ta.console.updateAllDetail': '1 台ずつ更新します。停止して新しいバージョンで起動し、作業は続きから再開します。起動できない Ta は元のバージョンに戻り、残りは更新しません。',
|
|
386
|
+
'ta.console.updatingProgress': '更新中 {done}/{total}',
|
|
387
|
+
'ta.console.update': '更新',
|
|
388
|
+
'ta.console.updateConfirm': '{account} の Ta を {version} に更新しますか?',
|
|
389
|
+
'ta.console.updateDetail': '停止して新しいバージョンで起動し、作業は続きから再開します。起動できなければ元のバージョンに戻ります。',
|
|
390
|
+
'ta.console.updateWorking': '{count} 件の会話が進行中です。一時停止し、起動後に続きから再開します。',
|
|
391
|
+
'ta.console.rollback': '前のバージョン({version})に戻す',
|
|
392
|
+
'ta.console.rollbackConfirm': '{account} の Ta を {version} に戻しますか?',
|
|
393
|
+
'ta.console.rollbackDetail': '前のバージョンで再起動し、手動で更新するまでこのバージョンには自動で更新しません。',
|
|
394
|
+
'ta.console.version': 'バージョン',
|
|
395
|
+
'ta.console.updatable': '更新あり',
|
|
396
|
+
'ta.console.updates': '更新',
|
|
397
|
+
'ta.console.updatesHint': '起動する Ta は常に最新バージョンを使います。起動できなければ自動で元のバージョンに戻ります。',
|
|
398
|
+
'ta.console.updateMode': '実行中の Ta',
|
|
399
|
+
'ta.console.updateIdle': 'アイドル時に自動更新',
|
|
400
|
+
'ta.console.updateIdleHint': '進行中の会話がなく、10 分間動きがないとき',
|
|
401
|
+
'ta.console.updateManual': '手動で更新',
|
|
402
|
+
'ta.console.updateManualHint': 'アカウントページで「更新」したとき',
|
|
403
|
+
'ta.console.checkUpdates': '新しいバージョンを確認',
|
|
404
|
+
'ta.console.checked': '{count, plural, =0 {すべての Ta が最新バージョンです} other {# 台の Ta を更新できます}}',
|
|
405
|
+
'ta.console.auditUpdate': '更新:',
|
|
406
|
+
'ta.console.auditUpdateAll': 'すべての Ta を更新',
|
|
407
|
+
'ta.console.auditRollback': '前のバージョンに戻した:',
|
|
408
|
+
'ta.console.auditUpdatePolicy': '更新方法を変更',
|
|
409
|
+
'ta.environment.newVersion': '新しいバージョン {version}',
|
|
410
|
+
'ta.environment.newVersionIdle': 'アイドル時に自動で更新されます。今すぐ更新すると作業は一時停止し、続きから再開します。',
|
|
411
|
+
'ta.environment.newVersionManual': '今すぐ更新します。作業は一時停止し、続きから再開します。',
|
|
382
412
|
'ta.access.title': 'アクセス',
|
|
383
413
|
'ta.access.bind': 'アカウントでサインイン',
|
|
384
414
|
'ta.access.bindHint': 'サインインに使用するアカウントを許可するため、次回以降は任意のデバイスでサインインできます。',
|
|
@@ -634,6 +664,15 @@ exports.JA_MESSAGES = {
|
|
|
634
664
|
'ta.assistant.rename': '名前変更',
|
|
635
665
|
'ta.assistant.prompt': 'システムプロンプト',
|
|
636
666
|
'ta.assistant.look': '外見',
|
|
667
|
+
'ta.picture.title': '私のアイコン',
|
|
668
|
+
'ta.picture.hint': 'グループチャットと友だちに見えるあなた。分身は恐竜のままです。',
|
|
669
|
+
'ta.picture.choose': '写真を選ぶ・撮る',
|
|
670
|
+
'ta.picture.draw': 'Ta に描いてもらう',
|
|
671
|
+
'ta.picture.reset': '恐竜に戻す',
|
|
672
|
+
'ta.picture.drawPlaceholder': '何を描く?例:ヘッドホンをした柴犬',
|
|
673
|
+
'ta.picture.drawSend': '描いてもらう',
|
|
674
|
+
'ta.picture.tooLarge': 'この写真は十分に小さくできません。別の写真を試してください。',
|
|
675
|
+
'ta.picture.drawPrompt': 'グループチャットと友だちに見せる私のアイコンを描いて:{what}。256 × 256 の正方形、主題は中央、文字なし。SVG か PNG で 11 KB 以内。描けたらまず見せて、私が OK と言ってから `ta call @celljs/ta-rooms picture /ファイルの絶対パス` で私のアイコンに設定して。直してほしいと言ったら、先に描き直して見せて。',
|
|
637
676
|
'ta.look.title': '分身の外見',
|
|
638
677
|
'ta.look.species': '恐竜',
|
|
639
678
|
'ta.look.gait': '歩き方',
|
|
@@ -837,7 +876,7 @@ exports.JA_MESSAGES = {
|
|
|
837
876
|
'ta.settings.version': 'バージョン',
|
|
838
877
|
'ta.settings.cwd': 'デフォルトのディレクトリ',
|
|
839
878
|
'ta.settings.signOut': 'ログアウト',
|
|
840
|
-
'ta.account.switchSignIn': '
|
|
879
|
+
'ta.account.switchSignIn': 'アカウントを切り替え',
|
|
841
880
|
'ta.chat': '会話',
|
|
842
881
|
'ta.sidebar': 'サイドバー',
|
|
843
882
|
'ta.chat.new': '新しい会話',
|
|
@@ -1338,7 +1377,7 @@ exports.JA_MESSAGES = {
|
|
|
1338
1377
|
'ta.auth.hintRemote': '認証情報は Ta を実行しているマシンにのみ保存されます。',
|
|
1339
1378
|
'ta.auth.later': '後で',
|
|
1340
1379
|
'ta.hosts.title': 'コンピュータ',
|
|
1341
|
-
'ta.myDevices.title': '
|
|
1380
|
+
'ta.myDevices.title': 'マイデバイス',
|
|
1342
1381
|
'ta.myDevices.hint': 'パソコンとスマホで同じアカウントにログインすると、互いに自動で表示されます。コードの読み取りは不要です。',
|
|
1343
1382
|
'ta.myDevices.signInWith': '{name} でログイン',
|
|
1344
1383
|
'ta.myDevices.enterCode': '{name} でこのコードを入力',
|
|
@@ -1358,11 +1397,22 @@ exports.JA_MESSAGES = {
|
|
|
1358
1397
|
'ta.myDevices.remove': '削除',
|
|
1359
1398
|
'ta.myDevices.removeConfirm': '{name} をアカウントから削除しますか? あなたのパソコンに接続できなくなります。',
|
|
1360
1399
|
'ta.myDevices.signOut': 'ログアウト',
|
|
1361
|
-
'ta.myDevices.signOutConfirm': '
|
|
1362
|
-
'ta.myDevices.signOutConfirmComputer': '
|
|
1400
|
+
'ta.myDevices.signOutConfirm': 'ログアウトしますか? アカウントのパソコンとクラウドの Ta はこのデバイスから外れ、コードで接続したものは残ります。',
|
|
1401
|
+
'ta.myDevices.signOutConfirmComputer': 'ログアウトしますか? このパソコンはアカウントから外れ、アカウントで追加したデバイスは接続できなくなります。',
|
|
1363
1402
|
'ta.myDevices.none': 'まだこのデバイスだけです。ほかのパソコンやスマホで同じアカウントにログインしてください。',
|
|
1364
1403
|
'ta.myDevices.open': '開く',
|
|
1365
1404
|
'ta.myDevices.signInAccount': 'アカウントでログイン',
|
|
1405
|
+
'ta.myDevices.others': 'ほかのデバイス',
|
|
1406
|
+
'ta.myDevices.computersComing': 'パソコンの Ta で同じアカウントにログインすると、ここに自動で表示されます。',
|
|
1407
|
+
'ta.me.profile': 'プロフィール',
|
|
1408
|
+
'ta.me.picture': 'アイコン',
|
|
1409
|
+
'ta.me.name': '名前',
|
|
1410
|
+
'ta.me.nameHint': '友だちやグループで表示される名前',
|
|
1411
|
+
'ta.me.account': 'アカウント',
|
|
1412
|
+
'ta.me.noAccount': '未ログイン',
|
|
1413
|
+
'ta.me.companyAccount': '会社のアカウント',
|
|
1414
|
+
'ta.me.recent': '最近のログイン',
|
|
1415
|
+
'ta.me.profileHint': '友だちやグループにはこのアイコンと名前が表示されます。同じアカウントのパソコンで共有されます。',
|
|
1366
1416
|
'ta.hosts.scan': 'スキャンして接続',
|
|
1367
1417
|
'ta.hosts.scanShort': 'スキャン',
|
|
1368
1418
|
'ta.hosts.paste': 'リンクを貼り付け',
|
|
@@ -380,6 +380,36 @@ exports.ZH_TW_MESSAGES = {
|
|
|
380
380
|
'ta.console.manage': '管理',
|
|
381
381
|
'ta.console.sandbox': '沙箱',
|
|
382
382
|
'ta.console.about': '基本資訊',
|
|
383
|
+
'ta.console.updatesAvailable': '{count} 台 Ta 可以更新到 {version}',
|
|
384
|
+
'ta.console.updateAll': '全部更新',
|
|
385
|
+
'ta.console.updateAllConfirm': '把 {count} 台 Ta 更新到 {version}?',
|
|
386
|
+
'ta.console.updateAllDetail': '一台接一台地更新:先停下,再用新版本啟動,之前在做的事會接著做。有一台起不來時,它會自動回到原來的版本,其餘的不再更新。',
|
|
387
|
+
'ta.console.updatingProgress': '正在更新 {done}/{total}',
|
|
388
|
+
'ta.console.update': '更新',
|
|
389
|
+
'ta.console.updateConfirm': '把 {account} 的 Ta 更新到 {version}?',
|
|
390
|
+
'ta.console.updateDetail': '會先停下,再用新版本啟動,之前在做的事會接著做;起不來會自動回到原來的版本。',
|
|
391
|
+
'ta.console.updateWorking': '有 {count} 個對話正在進行,會暫停,啟動後接著做。',
|
|
392
|
+
'ta.console.rollback': '回到上一版({version})',
|
|
393
|
+
'ta.console.rollbackConfirm': '把 {account} 的 Ta 回到 {version}?',
|
|
394
|
+
'ta.console.rollbackDetail': '會用上一版重新啟動,之後不會再自動更新到這個版本,直到手動更新。',
|
|
395
|
+
'ta.console.version': '版本',
|
|
396
|
+
'ta.console.updatable': '可更新',
|
|
397
|
+
'ta.console.updates': '更新',
|
|
398
|
+
'ta.console.updatesHint': '新啟動的 Ta 都用最新版本;起不來時會自動回到原來的版本。',
|
|
399
|
+
'ta.console.updateMode': '執行中的 Ta',
|
|
400
|
+
'ta.console.updateIdle': '閒置時自動更新',
|
|
401
|
+
'ta.console.updateIdleHint': '沒有對話在進行、10 分鐘沒有動靜時',
|
|
402
|
+
'ta.console.updateManual': '手動更新',
|
|
403
|
+
'ta.console.updateManualHint': '在帳號頁點「更新」時',
|
|
404
|
+
'ta.console.checkUpdates': '檢查新版本',
|
|
405
|
+
'ta.console.checked': '{count, plural, =0 {所有 Ta 都是最新版本} other {# 台 Ta 可以更新}}',
|
|
406
|
+
'ta.console.auditUpdate': '更新了',
|
|
407
|
+
'ta.console.auditUpdateAll': '更新了全部 Ta',
|
|
408
|
+
'ta.console.auditRollback': '回退了',
|
|
409
|
+
'ta.console.auditUpdatePolicy': '修改了更新方式',
|
|
410
|
+
'ta.environment.newVersion': '有新版本 {version}',
|
|
411
|
+
'ta.environment.newVersionIdle': '閒置時會自動更新;也可以現在更新,正在做的事會暫停後接著做。',
|
|
412
|
+
'ta.environment.newVersionManual': '現在更新,正在做的事會暫停後接著做。',
|
|
383
413
|
'ta.access.title': '存取',
|
|
384
414
|
'ta.access.bind': '用你的帳號登入',
|
|
385
415
|
'ta.access.bindHint': '允許你登入用的這個帳號,以後在任何裝置上都能用它登入。',
|
|
@@ -635,6 +665,15 @@ exports.ZH_TW_MESSAGES = {
|
|
|
635
665
|
'ta.assistant.rename': '重新命名',
|
|
636
666
|
'ta.assistant.prompt': '系統提示詞',
|
|
637
667
|
'ta.assistant.look': '形象',
|
|
668
|
+
'ta.picture.title': '我的頭像',
|
|
669
|
+
'ta.picture.hint': '群聊和好友裡別人看到的你,分身仍是恐龍。',
|
|
670
|
+
'ta.picture.choose': '從相簿選擇或拍照',
|
|
671
|
+
'ta.picture.draw': '讓 Ta 畫一個',
|
|
672
|
+
'ta.picture.reset': '換回恐龍',
|
|
673
|
+
'ta.picture.drawPlaceholder': '畫成什麼樣?比如:戴耳機的柴犬',
|
|
674
|
+
'ta.picture.drawSend': '開始畫',
|
|
675
|
+
'ta.picture.tooLarge': '這張照片壓不到夠小,換一張試試。',
|
|
676
|
+
'ta.picture.drawPrompt': '給我畫一個頭像,別人在群聊和好友裡看到的就是它:{what}。正方形 256 × 256,主體置中,不要文字;SVG 或 PNG,11 KB 以內。畫好先給我看,等我說好了再用 `ta call @celljs/ta-rooms picture /檔案的絕對路徑` 設成我的頭像;我要改就先改好再給我看。',
|
|
638
677
|
'ta.look.title': '分身形象',
|
|
639
678
|
'ta.look.species': '恐龍',
|
|
640
679
|
'ta.look.gait': '走路',
|
|
@@ -838,7 +877,7 @@ exports.ZH_TW_MESSAGES = {
|
|
|
838
877
|
'ta.settings.version': '版本',
|
|
839
878
|
'ta.settings.cwd': '預設目錄',
|
|
840
879
|
'ta.settings.signOut': '退出登入',
|
|
841
|
-
'ta.account.switchSignIn': '
|
|
880
|
+
'ta.account.switchSignIn': '切換帳號',
|
|
842
881
|
'ta.chat': '對話',
|
|
843
882
|
'ta.sidebar': '側欄',
|
|
844
883
|
'ta.chat.new': '新對話',
|
|
@@ -1339,7 +1378,7 @@ exports.ZH_TW_MESSAGES = {
|
|
|
1339
1378
|
'ta.auth.hintRemote': '憑據只儲存在執行 Ta 的機器上。',
|
|
1340
1379
|
'ta.auth.later': '稍後再說',
|
|
1341
1380
|
'ta.hosts.title': '電腦',
|
|
1342
|
-
'ta.myDevices.title': '
|
|
1381
|
+
'ta.myDevices.title': '我的裝置',
|
|
1343
1382
|
'ta.myDevices.hint': '電腦和手機登入同一個帳號,彼此自動出現,不用掃碼。',
|
|
1344
1383
|
'ta.myDevices.signInWith': '使用 {name} 登入',
|
|
1345
1384
|
'ta.myDevices.enterCode': '在 {name} 輸入這串碼',
|
|
@@ -1359,11 +1398,22 @@ exports.ZH_TW_MESSAGES = {
|
|
|
1359
1398
|
'ta.myDevices.remove': '移除',
|
|
1360
1399
|
'ta.myDevices.removeConfirm': '從帳號移除 {name}?它將無法再連線你的電腦。',
|
|
1361
1400
|
'ta.myDevices.signOut': '登出帳號',
|
|
1362
|
-
'ta.myDevices.signOutConfirm': '
|
|
1363
|
-
'ta.myDevices.signOutConfirmComputer': '
|
|
1401
|
+
'ta.myDevices.signOutConfirm': '登出?帳號帶來的電腦和雲端 Ta 會從這台裝置移除,掃碼連線的保留。',
|
|
1402
|
+
'ta.myDevices.signOutConfirmComputer': '登出?這台電腦會登出帳號,帳號帶來的裝置將無法再連線它。',
|
|
1364
1403
|
'ta.myDevices.none': '目前只有這台裝置。在其他電腦和手機上登入同一個帳號即可。',
|
|
1365
1404
|
'ta.myDevices.open': '開啟',
|
|
1366
1405
|
'ta.myDevices.signInAccount': '用帳號登入',
|
|
1406
|
+
'ta.myDevices.others': '其他裝置',
|
|
1407
|
+
'ta.myDevices.computersComing': '在電腦上的 Ta 裡登入同一個帳號,電腦會自動出現在這裡。',
|
|
1408
|
+
'ta.me.profile': '個人資料',
|
|
1409
|
+
'ta.me.picture': '頭像',
|
|
1410
|
+
'ta.me.name': '名字',
|
|
1411
|
+
'ta.me.nameHint': '好友和群組裡看到的名字',
|
|
1412
|
+
'ta.me.account': '帳號',
|
|
1413
|
+
'ta.me.noAccount': '未登入',
|
|
1414
|
+
'ta.me.companyAccount': '公司帳號',
|
|
1415
|
+
'ta.me.recent': '最近登入',
|
|
1416
|
+
'ta.me.profileHint': '好友和群組裡看到的是這裡的頭像和名字,同帳號的電腦共用。',
|
|
1367
1417
|
'ta.hosts.scan': '掃碼連線',
|
|
1368
1418
|
'ta.hosts.scanShort': '掃一掃',
|
|
1369
1419
|
'ta.hosts.paste': '貼上連結',
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { type TaLanguage } from '@celljs/ta-protocol';
|
|
2
|
-
import { JA_MESSAGES } from './messages-ja';
|
|
3
|
-
import { ZH_TW_MESSAGES } from './messages-zh-tw';
|
|
4
1
|
/** The messages of the web client, in ICU format. English is the source and the fallback. */
|
|
5
2
|
export declare const EN_MESSAGES: {
|
|
6
3
|
'ta.dismiss': string;
|
|
@@ -380,6 +377,36 @@ export declare const EN_MESSAGES: {
|
|
|
380
377
|
'ta.console.manage': string;
|
|
381
378
|
'ta.console.sandbox': string;
|
|
382
379
|
'ta.console.about': string;
|
|
380
|
+
'ta.console.updatesAvailable': string;
|
|
381
|
+
'ta.console.updateAll': string;
|
|
382
|
+
'ta.console.updateAllConfirm': string;
|
|
383
|
+
'ta.console.updateAllDetail': string;
|
|
384
|
+
'ta.console.updatingProgress': string;
|
|
385
|
+
'ta.console.update': string;
|
|
386
|
+
'ta.console.updateConfirm': string;
|
|
387
|
+
'ta.console.updateDetail': string;
|
|
388
|
+
'ta.console.updateWorking': string;
|
|
389
|
+
'ta.console.rollback': string;
|
|
390
|
+
'ta.console.rollbackConfirm': string;
|
|
391
|
+
'ta.console.rollbackDetail': string;
|
|
392
|
+
'ta.console.version': string;
|
|
393
|
+
'ta.console.updatable': string;
|
|
394
|
+
'ta.console.updates': string;
|
|
395
|
+
'ta.console.updatesHint': string;
|
|
396
|
+
'ta.console.updateMode': string;
|
|
397
|
+
'ta.console.updateIdle': string;
|
|
398
|
+
'ta.console.updateIdleHint': string;
|
|
399
|
+
'ta.console.updateManual': string;
|
|
400
|
+
'ta.console.updateManualHint': string;
|
|
401
|
+
'ta.console.checkUpdates': string;
|
|
402
|
+
'ta.console.checked': string;
|
|
403
|
+
'ta.console.auditUpdate': string;
|
|
404
|
+
'ta.console.auditUpdateAll': string;
|
|
405
|
+
'ta.console.auditRollback': string;
|
|
406
|
+
'ta.console.auditUpdatePolicy': string;
|
|
407
|
+
'ta.environment.newVersion': string;
|
|
408
|
+
'ta.environment.newVersionIdle': string;
|
|
409
|
+
'ta.environment.newVersionManual': string;
|
|
383
410
|
'ta.access.title': string;
|
|
384
411
|
'ta.access.bind': string;
|
|
385
412
|
'ta.access.bindHint': string;
|
|
@@ -635,6 +662,15 @@ export declare const EN_MESSAGES: {
|
|
|
635
662
|
'ta.assistant.rename': string;
|
|
636
663
|
'ta.assistant.prompt': string;
|
|
637
664
|
'ta.assistant.look': string;
|
|
665
|
+
'ta.picture.title': string;
|
|
666
|
+
'ta.picture.hint': string;
|
|
667
|
+
'ta.picture.choose': string;
|
|
668
|
+
'ta.picture.draw': string;
|
|
669
|
+
'ta.picture.reset': string;
|
|
670
|
+
'ta.picture.drawPlaceholder': string;
|
|
671
|
+
'ta.picture.drawSend': string;
|
|
672
|
+
'ta.picture.tooLarge': string;
|
|
673
|
+
'ta.picture.drawPrompt': string;
|
|
638
674
|
'ta.look.title': string;
|
|
639
675
|
'ta.look.species': string;
|
|
640
676
|
'ta.look.gait': string;
|
|
@@ -1364,6 +1400,17 @@ export declare const EN_MESSAGES: {
|
|
|
1364
1400
|
'ta.myDevices.none': string;
|
|
1365
1401
|
'ta.myDevices.open': string;
|
|
1366
1402
|
'ta.myDevices.signInAccount': string;
|
|
1403
|
+
'ta.myDevices.others': string;
|
|
1404
|
+
'ta.myDevices.computersComing': string;
|
|
1405
|
+
'ta.me.profile': string;
|
|
1406
|
+
'ta.me.picture': string;
|
|
1407
|
+
'ta.me.name': string;
|
|
1408
|
+
'ta.me.nameHint': string;
|
|
1409
|
+
'ta.me.account': string;
|
|
1410
|
+
'ta.me.noAccount': string;
|
|
1411
|
+
'ta.me.companyAccount': string;
|
|
1412
|
+
'ta.me.recent': string;
|
|
1413
|
+
'ta.me.profileHint': string;
|
|
1367
1414
|
'ta.hosts.scan': string;
|
|
1368
1415
|
'ta.hosts.scanShort': string;
|
|
1369
1416
|
'ta.hosts.paste': string;
|
|
@@ -1477,11 +1524,12 @@ export declare const EN_MESSAGES: {
|
|
|
1477
1524
|
};
|
|
1478
1525
|
export type MessageId = keyof typeof EN_MESSAGES;
|
|
1479
1526
|
export declare const ZH_MESSAGES: Record<MessageId, string>;
|
|
1480
|
-
|
|
1481
|
-
/** The messages of
|
|
1482
|
-
export declare
|
|
1483
|
-
/** The messages of a language
|
|
1484
|
-
export declare function
|
|
1527
|
+
type Messages = Record<MessageId, string>;
|
|
1528
|
+
/** The messages of a language of the settings (`zh-CN`, `zh-TW`, `ja-JP`), English for another and until loaded. */
|
|
1529
|
+
export declare function messagesOf(language: string): Messages;
|
|
1530
|
+
/** The messages of a language, loaded once; English for a language that fails to load. */
|
|
1531
|
+
export declare function loadMessages(language: string): Promise<Messages>;
|
|
1485
1532
|
/** A message outside React, in a language of the settings. */
|
|
1486
1533
|
export declare function message(language: string, id: MessageId): string;
|
|
1534
|
+
export {};
|
|
1487
1535
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ZH_MESSAGES = exports.EN_MESSAGES = void 0;
|
|
4
4
|
exports.messagesOf = messagesOf;
|
|
5
|
+
exports.loadMessages = loadMessages;
|
|
5
6
|
exports.message = message;
|
|
6
7
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
7
|
-
const messages_ja_1 = require("./messages-ja");
|
|
8
|
-
Object.defineProperty(exports, "JA_MESSAGES", { enumerable: true, get: function () { return messages_ja_1.JA_MESSAGES; } });
|
|
9
|
-
const messages_zh_tw_1 = require("./messages-zh-tw");
|
|
10
|
-
Object.defineProperty(exports, "ZH_TW_MESSAGES", { enumerable: true, get: function () { return messages_zh_tw_1.ZH_TW_MESSAGES; } });
|
|
11
8
|
/** The messages of the web client, in ICU format. English is the source and the fallback. */
|
|
12
9
|
exports.EN_MESSAGES = {
|
|
13
10
|
'ta.dismiss': 'Dismiss',
|
|
@@ -391,6 +388,36 @@ exports.EN_MESSAGES = {
|
|
|
391
388
|
'ta.console.manage': 'Manage',
|
|
392
389
|
'ta.console.sandbox': 'Sandbox',
|
|
393
390
|
'ta.console.about': 'About',
|
|
391
|
+
'ta.console.updatesAvailable': '{count, plural, one {# Ta runs} other {# Ta run}} a version older than {version}',
|
|
392
|
+
'ta.console.updateAll': 'Update all',
|
|
393
|
+
'ta.console.updateAllConfirm': 'Update {count, plural, one {# Ta} other {# Ta}} to {version}?',
|
|
394
|
+
'ta.console.updateAllDetail': 'One after another: each stops, starts on the new version and goes on with what it was doing. One that does not start goes back to its version, and the rest wait.',
|
|
395
|
+
'ta.console.updatingProgress': 'Updating {done} of {total}',
|
|
396
|
+
'ta.console.update': 'Update',
|
|
397
|
+
'ta.console.updateConfirm': 'Update the Ta of {account} to {version}?',
|
|
398
|
+
'ta.console.updateDetail': 'It stops and starts on the new version, and what it was doing goes on. If it does not start, it goes back to its version.',
|
|
399
|
+
'ta.console.updateWorking': '{count, plural, one {# conversation is} other {# conversations are}} at work: they pause and go on once it starts.',
|
|
400
|
+
'ta.console.rollback': 'Go back to {version}',
|
|
401
|
+
'ta.console.rollbackConfirm': 'Take the Ta of {account} back to {version}?',
|
|
402
|
+
'ta.console.rollbackDetail': 'It restarts on the version before, and stays on it until it is updated by hand.',
|
|
403
|
+
'ta.console.version': 'Version',
|
|
404
|
+
'ta.console.updatable': 'Update ready',
|
|
405
|
+
'ta.console.updates': 'Updates',
|
|
406
|
+
'ta.console.updatesHint': 'A Ta that starts runs the latest version; one that does not start goes back to the version before by itself.',
|
|
407
|
+
'ta.console.updateMode': 'Running Ta',
|
|
408
|
+
'ta.console.updateIdle': 'Update when idle',
|
|
409
|
+
'ta.console.updateIdleHint': 'Once no conversation is at work and nothing happened for 10 minutes',
|
|
410
|
+
'ta.console.updateManual': 'Update by hand',
|
|
411
|
+
'ta.console.updateManualHint': 'When Update is tapped on its account page',
|
|
412
|
+
'ta.console.checkUpdates': 'Check for a new version',
|
|
413
|
+
'ta.console.checked': '{count, plural, =0 {Every Ta runs the latest version} one {# Ta can be updated} other {# Ta can be updated}}',
|
|
414
|
+
'ta.console.auditUpdate': 'updated',
|
|
415
|
+
'ta.console.auditUpdateAll': 'updated every Ta',
|
|
416
|
+
'ta.console.auditRollback': 'took back',
|
|
417
|
+
'ta.console.auditUpdatePolicy': 'changed when Ta updates',
|
|
418
|
+
'ta.environment.newVersion': 'New version {version}',
|
|
419
|
+
'ta.environment.newVersionIdle': 'It updates by itself once idle; update now, and what runs pauses and goes on after.',
|
|
420
|
+
'ta.environment.newVersionManual': 'Update now: what runs pauses and goes on after.',
|
|
394
421
|
'ta.access.title': 'Access',
|
|
395
422
|
'ta.access.bind': 'Sign in with your account',
|
|
396
423
|
'ta.access.bindHint': 'Lets in the account you sign in with, so that it signs you in next time, on any device.',
|
|
@@ -646,6 +673,15 @@ exports.EN_MESSAGES = {
|
|
|
646
673
|
'ta.assistant.rename': 'Rename',
|
|
647
674
|
'ta.assistant.prompt': 'System prompt',
|
|
648
675
|
'ta.assistant.look': 'Look',
|
|
676
|
+
'ta.picture.title': 'My picture',
|
|
677
|
+
'ta.picture.hint': 'What others see of you in group chats and among friends. Your double stays a dinosaur.',
|
|
678
|
+
'ta.picture.choose': 'Choose or take a photo',
|
|
679
|
+
'ta.picture.draw': 'Have Ta draw one',
|
|
680
|
+
'ta.picture.reset': 'Back to the dinosaur',
|
|
681
|
+
'ta.picture.drawPlaceholder': 'What should it be? e.g. a shiba in headphones',
|
|
682
|
+
'ta.picture.drawSend': 'Draw it',
|
|
683
|
+
'ta.picture.tooLarge': 'This photo cannot be made small enough. Try another.',
|
|
684
|
+
'ta.picture.drawPrompt': 'Draw me a picture that others see of me in group chats and among friends: {what}. A square of 256 × 256, the subject in the middle, no text; an SVG or a PNG of 11 KB at most. Show it to me and wait: only once I say it is good, set it with `ta call @celljs/ta-rooms picture /the/absolute/path/of/it`; if I want changes, draw it again first.',
|
|
649
685
|
'ta.look.title': 'Look of the double',
|
|
650
686
|
'ta.look.species': 'Dinosaur',
|
|
651
687
|
'ta.look.gait': 'Walk',
|
|
@@ -849,7 +885,7 @@ exports.EN_MESSAGES = {
|
|
|
849
885
|
'ta.settings.version': 'Version',
|
|
850
886
|
'ta.settings.cwd': 'Default directory',
|
|
851
887
|
'ta.settings.signOut': 'Sign out',
|
|
852
|
-
'ta.account.switchSignIn': 'Switch
|
|
888
|
+
'ta.account.switchSignIn': 'Switch account',
|
|
853
889
|
'ta.chat': 'Chats',
|
|
854
890
|
'ta.sidebar': 'Sidebar',
|
|
855
891
|
'ta.chat.new': 'New chat',
|
|
@@ -1354,7 +1390,7 @@ exports.EN_MESSAGES = {
|
|
|
1354
1390
|
'ta.auth.hintRemote': 'Credentials stay on the machine that runs Ta.',
|
|
1355
1391
|
'ta.auth.later': 'Later',
|
|
1356
1392
|
'ta.hosts.title': 'Computers',
|
|
1357
|
-
'ta.myDevices.title': '
|
|
1393
|
+
'ta.myDevices.title': 'My devices',
|
|
1358
1394
|
'ta.myDevices.hint': 'Sign in to one account on your computers and phone: they show up on each other, no code to scan.',
|
|
1359
1395
|
'ta.myDevices.signInWith': 'Sign in with {name}',
|
|
1360
1396
|
'ta.myDevices.enterCode': 'Enter this code on {name}',
|
|
@@ -1374,11 +1410,22 @@ exports.EN_MESSAGES = {
|
|
|
1374
1410
|
'ta.myDevices.remove': 'Remove',
|
|
1375
1411
|
'ta.myDevices.removeConfirm': 'Remove {name} from your account? It can no longer reach your computers.',
|
|
1376
1412
|
'ta.myDevices.signOut': 'Sign out',
|
|
1377
|
-
'ta.myDevices.signOutConfirm': 'Sign out
|
|
1378
|
-
'ta.myDevices.signOutConfirmComputer': 'Sign out of the account?
|
|
1413
|
+
'ta.myDevices.signOutConfirm': 'Sign out? The computers and the Ta in the cloud of your account leave this device; those you connected by a code stay.',
|
|
1414
|
+
'ta.myDevices.signOutConfirmComputer': 'Sign out of the account? This computer leaves it, and the devices it added can no longer reach it.',
|
|
1379
1415
|
'ta.myDevices.none': 'Only this device so far. Sign in to the same account on your other computers and phone.',
|
|
1380
1416
|
'ta.myDevices.open': 'Open',
|
|
1381
1417
|
'ta.myDevices.signInAccount': 'Sign in with an account',
|
|
1418
|
+
'ta.myDevices.others': 'Other devices',
|
|
1419
|
+
'ta.myDevices.computersComing': 'Sign in to the same account in Ta on your computer: it shows up here by itself.',
|
|
1420
|
+
'ta.me.profile': 'Profile',
|
|
1421
|
+
'ta.me.picture': 'Picture',
|
|
1422
|
+
'ta.me.name': 'Name',
|
|
1423
|
+
'ta.me.nameHint': 'The name friends and group chats see',
|
|
1424
|
+
'ta.me.account': 'Account',
|
|
1425
|
+
'ta.me.noAccount': 'Not signed in',
|
|
1426
|
+
'ta.me.companyAccount': 'Company account',
|
|
1427
|
+
'ta.me.recent': 'Signed in before',
|
|
1428
|
+
'ta.me.profileHint': 'Friends and group chats see your picture and name. The computers of your account share them.',
|
|
1382
1429
|
'ta.hosts.scan': 'Scan to connect',
|
|
1383
1430
|
'ta.hosts.scanShort': 'Scan',
|
|
1384
1431
|
'ta.hosts.paste': 'Paste a link',
|
|
@@ -1868,6 +1915,36 @@ exports.ZH_MESSAGES = {
|
|
|
1868
1915
|
'ta.console.manage': '管理',
|
|
1869
1916
|
'ta.console.sandbox': '沙箱',
|
|
1870
1917
|
'ta.console.about': '基本信息',
|
|
1918
|
+
'ta.console.updatesAvailable': '{count} 台 Ta 可以更新到 {version}',
|
|
1919
|
+
'ta.console.updateAll': '全部更新',
|
|
1920
|
+
'ta.console.updateAllConfirm': '把 {count} 台 Ta 更新到 {version}?',
|
|
1921
|
+
'ta.console.updateAllDetail': '一台接一台地更新:先停下,再用新版本启动,之前在做的事会接着做。有一台起不来时,它会自动回到原来的版本,其余的不再更新。',
|
|
1922
|
+
'ta.console.updatingProgress': '正在更新 {done}/{total}',
|
|
1923
|
+
'ta.console.update': '更新',
|
|
1924
|
+
'ta.console.updateConfirm': '把 {account} 的 Ta 更新到 {version}?',
|
|
1925
|
+
'ta.console.updateDetail': '会先停下,再用新版本启动,之前在做的事会接着做;起不来会自动回到原来的版本。',
|
|
1926
|
+
'ta.console.updateWorking': '有 {count} 个对话正在进行,会暂停,启动后接着做。',
|
|
1927
|
+
'ta.console.rollback': '回到上一版({version})',
|
|
1928
|
+
'ta.console.rollbackConfirm': '把 {account} 的 Ta 回到 {version}?',
|
|
1929
|
+
'ta.console.rollbackDetail': '会用上一版重新启动,之后不会再自动更新到这个版本,直到手动更新。',
|
|
1930
|
+
'ta.console.version': '版本',
|
|
1931
|
+
'ta.console.updatable': '可更新',
|
|
1932
|
+
'ta.console.updates': '更新',
|
|
1933
|
+
'ta.console.updatesHint': '新启动的 Ta 都用最新版本;起不来时会自动回到原来的版本。',
|
|
1934
|
+
'ta.console.updateMode': '运行中的 Ta',
|
|
1935
|
+
'ta.console.updateIdle': '空闲时自动更新',
|
|
1936
|
+
'ta.console.updateIdleHint': '没有对话在进行、10 分钟没有动静时',
|
|
1937
|
+
'ta.console.updateManual': '手动更新',
|
|
1938
|
+
'ta.console.updateManualHint': '在账号页点“更新”时',
|
|
1939
|
+
'ta.console.checkUpdates': '检查新版本',
|
|
1940
|
+
'ta.console.checked': '{count, plural, =0 {所有 Ta 都是最新版本} other {# 台 Ta 可以更新}}',
|
|
1941
|
+
'ta.console.auditUpdate': '更新了',
|
|
1942
|
+
'ta.console.auditUpdateAll': '更新了全部 Ta',
|
|
1943
|
+
'ta.console.auditRollback': '回退了',
|
|
1944
|
+
'ta.console.auditUpdatePolicy': '修改了更新方式',
|
|
1945
|
+
'ta.environment.newVersion': '有新版本 {version}',
|
|
1946
|
+
'ta.environment.newVersionIdle': '空闲时会自动更新;也可以现在更新,正在做的事会暂停后接着做。',
|
|
1947
|
+
'ta.environment.newVersionManual': '现在更新,正在做的事会暂停后接着做。',
|
|
1871
1948
|
'ta.access.title': '访问',
|
|
1872
1949
|
'ta.access.bind': '用你的账号登录',
|
|
1873
1950
|
'ta.access.bindHint': '允许你登录用的这个账号,以后在任何设备上都能用它登录。',
|
|
@@ -2123,6 +2200,15 @@ exports.ZH_MESSAGES = {
|
|
|
2123
2200
|
'ta.assistant.rename': '重命名',
|
|
2124
2201
|
'ta.assistant.prompt': '系统提示词',
|
|
2125
2202
|
'ta.assistant.look': '形象',
|
|
2203
|
+
'ta.picture.title': '我的头像',
|
|
2204
|
+
'ta.picture.hint': '群聊和好友里别人看到的你,分身仍是恐龙。',
|
|
2205
|
+
'ta.picture.choose': '从相册选择或拍照',
|
|
2206
|
+
'ta.picture.draw': '让 Ta 画一个',
|
|
2207
|
+
'ta.picture.reset': '换回恐龙',
|
|
2208
|
+
'ta.picture.drawPlaceholder': '画成什么样?比如:戴耳机的柴犬',
|
|
2209
|
+
'ta.picture.drawSend': '开始画',
|
|
2210
|
+
'ta.picture.tooLarge': '这张照片压不到够小,换一张试试。',
|
|
2211
|
+
'ta.picture.drawPrompt': '给我画一个头像,别人在群聊和好友里看到的就是它:{what}。正方形 256 × 256,主体居中,不要文字;SVG 或 PNG,11 KB 以内。画好先给我看,等我说好了再用 `ta call @celljs/ta-rooms picture /文件的绝对路径` 设成我的头像;我要改就先改好再给我看。',
|
|
2126
2212
|
'ta.look.title': '分身形象',
|
|
2127
2213
|
'ta.look.species': '恐龙',
|
|
2128
2214
|
'ta.look.gait': '走路',
|
|
@@ -2326,7 +2412,7 @@ exports.ZH_MESSAGES = {
|
|
|
2326
2412
|
'ta.settings.version': '版本',
|
|
2327
2413
|
'ta.settings.cwd': '默认目录',
|
|
2328
2414
|
'ta.settings.signOut': '退出登录',
|
|
2329
|
-
'ta.account.switchSignIn': '
|
|
2415
|
+
'ta.account.switchSignIn': '切换账号',
|
|
2330
2416
|
'ta.chat': '对话',
|
|
2331
2417
|
'ta.sidebar': '侧栏',
|
|
2332
2418
|
'ta.chat.new': '新对话',
|
|
@@ -2829,7 +2915,7 @@ exports.ZH_MESSAGES = {
|
|
|
2829
2915
|
'ta.auth.hintRemote': '凭据只保存在运行 Ta 的机器上。',
|
|
2830
2916
|
'ta.auth.later': '稍后再说',
|
|
2831
2917
|
'ta.hosts.title': '电脑',
|
|
2832
|
-
'ta.myDevices.title': '
|
|
2918
|
+
'ta.myDevices.title': '我的设备',
|
|
2833
2919
|
'ta.myDevices.hint': '电脑和手机登录同一个账号,彼此自动出现,不用扫码。',
|
|
2834
2920
|
'ta.myDevices.signInWith': '使用 {name} 登录',
|
|
2835
2921
|
'ta.myDevices.enterCode': '在 {name} 输入这串码',
|
|
@@ -2849,11 +2935,22 @@ exports.ZH_MESSAGES = {
|
|
|
2849
2935
|
'ta.myDevices.remove': '移除',
|
|
2850
2936
|
'ta.myDevices.removeConfirm': '从账号移除 {name}?它将无法再连接你的电脑。',
|
|
2851
2937
|
'ta.myDevices.signOut': '退出账号',
|
|
2852
|
-
'ta.myDevices.signOutConfirm': '
|
|
2853
|
-
'ta.myDevices.signOutConfirmComputer': '
|
|
2938
|
+
'ta.myDevices.signOutConfirm': '退出登录?账号带来的电脑和云端 Ta 会从这台设备移除,扫码连接的保留。',
|
|
2939
|
+
'ta.myDevices.signOutConfirmComputer': '退出登录?这台电脑会退出账号,账号带来的设备将无法再连接它。',
|
|
2854
2940
|
'ta.myDevices.none': '目前只有这台设备。在其他电脑和手机上登录同一个账号即可。',
|
|
2855
2941
|
'ta.myDevices.open': '打开',
|
|
2856
2942
|
'ta.myDevices.signInAccount': '用账号登录',
|
|
2943
|
+
'ta.myDevices.others': '其他设备',
|
|
2944
|
+
'ta.myDevices.computersComing': '在电脑上的 Ta 里登录同一个账号,电脑会自动出现在这里。',
|
|
2945
|
+
'ta.me.profile': '个人信息',
|
|
2946
|
+
'ta.me.picture': '头像',
|
|
2947
|
+
'ta.me.name': '名字',
|
|
2948
|
+
'ta.me.nameHint': '好友和群聊里看到的名字',
|
|
2949
|
+
'ta.me.account': '账号',
|
|
2950
|
+
'ta.me.noAccount': '未登录',
|
|
2951
|
+
'ta.me.companyAccount': '公司账号',
|
|
2952
|
+
'ta.me.recent': '最近登录',
|
|
2953
|
+
'ta.me.profileHint': '好友和群聊里看到的是这里的头像和名字,同账号的电脑共用。',
|
|
2857
2954
|
'ta.hosts.scan': '扫码连接',
|
|
2858
2955
|
'ta.hosts.scanShort': '扫一扫',
|
|
2859
2956
|
'ta.hosts.paste': '粘贴链接',
|
|
@@ -2965,16 +3062,41 @@ exports.ZH_MESSAGES = {
|
|
|
2965
3062
|
'ta.settings.cwdDescription': '新对话、终端和分身派出的任务在这里打开;已有的对话留在各自的目录:{path}',
|
|
2966
3063
|
'ta.workingDirectory.changed': '默认目录已改为 {path}',
|
|
2967
3064
|
};
|
|
2968
|
-
/**
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
'
|
|
3065
|
+
/**
|
|
3066
|
+
* Traditional Chinese and Japanese are chunks of their own, loaded by {@link loadMessages} as the language is chosen
|
|
3067
|
+
* (the Locale of each, through LocaleManager): together they made the first code of the page 170 KB larger.
|
|
3068
|
+
*/
|
|
3069
|
+
const LOADERS = {
|
|
3070
|
+
'zh-TW': () => import('./messages-zh-tw.js').then(module => module.ZH_TW_MESSAGES),
|
|
3071
|
+
'ja-JP': () => import('./messages-ja.js').then(module => module.JA_MESSAGES),
|
|
2974
3072
|
};
|
|
2975
|
-
|
|
3073
|
+
const loaded = { 'zh-CN': exports.ZH_MESSAGES, 'en-US': exports.EN_MESSAGES };
|
|
3074
|
+
const loading = new Map();
|
|
3075
|
+
/** The messages of a language of the settings (`zh-CN`, `zh-TW`, `ja-JP`), English for another and until loaded. */
|
|
2976
3076
|
function messagesOf(language) {
|
|
2977
|
-
|
|
3077
|
+
var _a;
|
|
3078
|
+
return (_a = loaded[ta_protocol_1.TaLanguageUtil.of(language)]) !== null && _a !== void 0 ? _a : exports.EN_MESSAGES;
|
|
3079
|
+
}
|
|
3080
|
+
/** The messages of a language, loaded once; English for a language that fails to load. */
|
|
3081
|
+
function loadMessages(language) {
|
|
3082
|
+
const lang = ta_protocol_1.TaLanguageUtil.of(language);
|
|
3083
|
+
const load = LOADERS[lang];
|
|
3084
|
+
if (loaded[lang] || !load) {
|
|
3085
|
+
return Promise.resolve(messagesOf(lang));
|
|
3086
|
+
}
|
|
3087
|
+
let messages = loading.get(lang);
|
|
3088
|
+
if (!messages) {
|
|
3089
|
+
messages = load().then(done => {
|
|
3090
|
+
loaded[lang] = done;
|
|
3091
|
+
return done;
|
|
3092
|
+
}, error => {
|
|
3093
|
+
loading.delete(lang);
|
|
3094
|
+
console.error(`The messages of ${lang} failed to load: ${error instanceof Error ? error.message : error}`);
|
|
3095
|
+
return exports.EN_MESSAGES;
|
|
3096
|
+
});
|
|
3097
|
+
loading.set(lang, messages);
|
|
3098
|
+
}
|
|
3099
|
+
return messages;
|
|
2978
3100
|
}
|
|
2979
3101
|
/** A message outside React, in a language of the settings. */
|
|
2980
3102
|
function message(language, id) {
|
|
@@ -48,14 +48,15 @@ function useIntl() {
|
|
|
48
48
|
var _a;
|
|
49
49
|
return (_a = React.useContext(react_intl_1.IntlContext)) !== null && _a !== void 0 ? _a : english();
|
|
50
50
|
}
|
|
51
|
+
/** By the messages, not the language: those of Japanese and Traditional Chinese are English until loaded. */
|
|
51
52
|
const intls = new Map();
|
|
52
53
|
/** The messages of a language outside of React: for what services say, in the words of the page. */
|
|
53
54
|
function translator(language) {
|
|
54
|
-
|
|
55
|
+
const messages = (0, messages_1.messagesOf)(language);
|
|
56
|
+
let intl = intls.get(messages);
|
|
55
57
|
if (!intl) {
|
|
56
|
-
const messages = (0, messages_1.messagesOf)(language);
|
|
57
58
|
intl = messages === messages_1.EN_MESSAGES ? english() : (0, react_intl_1.createIntl)({ locale: language, messages });
|
|
58
|
-
intls.set(
|
|
59
|
+
intls.set(messages, intl);
|
|
59
60
|
}
|
|
60
61
|
const shape = intl;
|
|
61
62
|
return (id, values) => shape.formatMessage({ id, defaultMessage: messages_1.EN_MESSAGES[id] }, values);
|
|
@@ -97,9 +97,11 @@ let TaSettingsImpl = class TaSettingsImpl {
|
|
|
97
97
|
document.head.appendChild(meta);
|
|
98
98
|
}
|
|
99
99
|
meta.content = exports.THEME_COLORS[state.theme].main;
|
|
100
|
+
// Even the current one: a language whose messages still load (Japanese, Traditional Chinese) is selected once
|
|
101
|
+
// they are there, unless another is asked for meanwhile.
|
|
100
102
|
void this.localeManager.get().then(locales => {
|
|
101
103
|
const locale = locales.find(candidate => candidate.lang === state.language);
|
|
102
|
-
if (locale
|
|
104
|
+
if (locale) {
|
|
103
105
|
this.localeManager.setCurrent(locale);
|
|
104
106
|
}
|
|
105
107
|
});
|