@chatcode/cco-better-sidebar 0.18.0-alpha.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/LICENSE +21 -0
- package/README.md +554 -0
- package/README_EN.md +563 -0
- package/assets/logo.svg +1 -0
- package/cordis.patch.yml +79 -0
- package/lib/client-editor.js +55744 -0
- package/lib/client-mermaid.js +208256 -0
- package/lib/client-registry.js +30378 -0
- package/lib/client-terminal.js +16894 -0
- package/lib/client.js +30378 -0
- package/lib/index.js +6897 -0
- package/lib/invariant.js +22 -0
- package/lib/types/agent-opens.d.ts +65 -0
- package/lib/types/agent-pty.d.ts +226 -0
- package/lib/types/browser-probe.d.ts +15 -0
- package/lib/types/bundle-route.d.ts +12 -0
- package/lib/types/chatcode-update.d.ts +47 -0
- package/lib/types/client/AccountMenu.d.ts +1 -0
- package/lib/types/client/AiRatioSection.d.ts +3 -0
- package/lib/types/client/BrowserView.d.ts +39 -0
- package/lib/types/client/ChatcodeGate.d.ts +6 -0
- package/lib/types/client/CodingPlanModelsSettings.d.ts +9 -0
- package/lib/types/client/DiffTab.d.ts +6 -0
- package/lib/types/client/DiffView.d.ts +51 -0
- package/lib/types/client/EditorHost.d.ts +13 -0
- package/lib/types/client/FenceErrorNotice.d.ts +5 -0
- package/lib/types/client/FileTree.d.ts +41 -0
- package/lib/types/client/FreeWindow.d.ts +29 -0
- package/lib/types/client/GitView.d.ts +12 -0
- package/lib/types/client/MarkdownHtml.d.ts +32 -0
- package/lib/types/client/OrphanedTab.d.ts +11 -0
- package/lib/types/client/PdfView.d.ts +6 -0
- package/lib/types/client/ReleaseNotesDialog.d.ts +11 -0
- package/lib/types/client/RenderBoundary.d.ts +32 -0
- package/lib/types/client/SandboxStatusBar.d.ts +10 -0
- package/lib/types/client/SideCardSection.d.ts +74 -0
- package/lib/types/client/Sidebar.d.ts +8 -0
- package/lib/types/client/TabBar.d.ts +54 -0
- package/lib/types/client/TerminalView.d.ts +24 -0
- package/lib/types/client/TextEditor.d.ts +10 -0
- package/lib/types/client/TreePanel.d.ts +27 -0
- package/lib/types/client/UpdateDialog.d.ts +10 -0
- package/lib/types/client/UpdateSettingsPanel.d.ts +1 -0
- package/lib/types/client/UpdateSettingsSection.d.ts +10 -0
- package/lib/types/client/UploadOverlay.d.ts +20 -0
- package/lib/types/client/UsageHeatmapSection.d.ts +4 -0
- package/lib/types/client/add-plugin-modal.d.ts +15 -0
- package/lib/types/client/api.d.ts +345 -0
- package/lib/types/client/binary-download.d.ts +12 -0
- package/lib/types/client/breakpoints.d.ts +17 -0
- package/lib/types/client/browser.d.ts +60 -0
- package/lib/types/client/builtins/index.d.ts +18 -0
- package/lib/types/client/builtins/tabs.d.ts +11 -0
- package/lib/types/client/builtins/viewers.d.ts +3 -0
- package/lib/types/client/chat-presentation.d.ts +13 -0
- package/lib/types/client/chunk-loader.d.ts +124 -0
- package/lib/types/client/chunks/editor.d.ts +9 -0
- package/lib/types/client/chunks/mermaid.d.ts +10 -0
- package/lib/types/client/chunks/terminal.d.ts +9 -0
- package/lib/types/client/cm-themes.d.ts +24 -0
- package/lib/types/client/conversation-draft.d.ts +14 -0
- package/lib/types/client/desktop-env.d.ts +35 -0
- package/lib/types/client/editor-load.d.ts +66 -0
- package/lib/types/client/frame-batcher.d.ts +24 -0
- package/lib/types/client/icons.d.ts +66 -0
- package/lib/types/client/image-types.d.ts +3 -0
- package/lib/types/client/ime-guard.d.ts +36 -0
- package/lib/types/client/index.d.ts +19 -0
- package/lib/types/client/intercept.d.ts +44 -0
- package/lib/types/client/lang.d.ts +14 -0
- package/lib/types/client/layout-push.d.ts +15 -0
- package/lib/types/client/lazy-chunk.d.ts +25 -0
- package/lib/types/client/link-intercept.d.ts +42 -0
- package/lib/types/client/locales-ar.d.ts +18 -0
- package/lib/types/client/locales-de.d.ts +4 -0
- package/lib/types/client/locales-fr.d.ts +10 -0
- package/lib/types/client/locales-hi.d.ts +17 -0
- package/lib/types/client/locales-id.d.ts +15 -0
- package/lib/types/client/locales-it.d.ts +8 -0
- package/lib/types/client/locales-ja.d.ts +17 -0
- package/lib/types/client/locales-ko.d.ts +9 -0
- package/lib/types/client/locales-nl.d.ts +16 -0
- package/lib/types/client/locales-pl.d.ts +19 -0
- package/lib/types/client/locales-pt.d.ts +1 -0
- package/lib/types/client/locales-ru.d.ts +13 -0
- package/lib/types/client/locales-sv.d.ts +1 -0
- package/lib/types/client/locales-th.d.ts +17 -0
- package/lib/types/client/locales-tr.d.ts +17 -0
- package/lib/types/client/locales-vi.d.ts +17 -0
- package/lib/types/client/locales-zh-HK.d.ts +32 -0
- package/lib/types/client/locales-zh-MO.d.ts +32 -0
- package/lib/types/client/locales-zh-TW.d.ts +32 -0
- package/lib/types/client/locales.d.ts +571 -0
- package/lib/types/client/markdown-html.d.ts +96 -0
- package/lib/types/client/markdown-images.d.ts +45 -0
- package/lib/types/client/markdown-labels.d.ts +21 -0
- package/lib/types/client/md-toc.d.ts +4 -0
- package/lib/types/client/mermaid-blocks.d.ts +47 -0
- package/lib/types/client/mermaid-sanitize.d.ts +2 -0
- package/lib/types/client/mermaid.d.ts +12 -0
- package/lib/types/client/open-when-sized.d.ts +20 -0
- package/lib/types/client/open-with-settings.d.ts +4 -0
- package/lib/types/client/open-with.d.ts +87 -0
- package/lib/types/client/openpath-intercept.d.ts +52 -0
- package/lib/types/client/paths.d.ts +43 -0
- package/lib/types/client/pdf-types.d.ts +2 -0
- package/lib/types/client/pinned.d.ts +86 -0
- package/lib/types/client/plugin-settings.d.ts +8 -0
- package/lib/types/client/plugins-shared.d.ts +27 -0
- package/lib/types/client/plugins-tabs.d.ts +3 -0
- package/lib/types/client/plugins-viewers.d.ts +3 -0
- package/lib/types/client/prefs.d.ts +41 -0
- package/lib/types/client/produced-files.d.ts +29 -0
- package/lib/types/client/selection-payload.d.ts +27 -0
- package/lib/types/client/service.d.ts +445 -0
- package/lib/types/client/session-pins.d.ts +14 -0
- package/lib/types/client/settings-nav-icon.d.ts +27 -0
- package/lib/types/client/shell-presets.d.ts +48 -0
- package/lib/types/client/split-pane.d.ts +38 -0
- package/lib/types/client/state.d.ts +480 -0
- package/lib/types/client/tab-content-memo.d.ts +40 -0
- package/lib/types/client/terminal-font.d.ts +78 -0
- package/lib/types/client/terminal-links.d.ts +119 -0
- package/lib/types/client/theme.d.ts +45 -0
- package/lib/types/client/titlebar-strip.d.ts +23 -0
- package/lib/types/client/ui-tweaks/appicons.d.ts +16 -0
- package/lib/types/client/ui-tweaks/archive.d.ts +42 -0
- package/lib/types/client/ui-tweaks/branding.d.ts +45 -0
- package/lib/types/client/ui-tweaks/cachehit.d.ts +41 -0
- package/lib/types/client/ui-tweaks/gitbar.d.ts +103 -0
- package/lib/types/client/ui-tweaks/index.d.ts +279 -0
- package/lib/types/client/ui-tweaks/mcp.d.ts +28 -0
- package/lib/types/client/ui-tweaks/notifier.d.ts +125 -0
- package/lib/types/client/ui-tweaks/whale.d.ts +55 -0
- package/lib/types/client/upload.d.ts +69 -0
- package/lib/types/client/useChatcodeAccount.d.ts +10 -0
- package/lib/types/client/wco.d.ts +47 -0
- package/lib/types/codingplan.d.ts +37 -0
- package/lib/types/config.d.ts +95 -0
- package/lib/types/context-types.d.ts +540 -0
- package/lib/types/fs-operations.d.ts +30 -0
- package/lib/types/fs-search.d.ts +24 -0
- package/lib/types/fs-tree.d.ts +51 -0
- package/lib/types/git.d.ts +124 -0
- package/lib/types/html-route.d.ts +59 -0
- package/lib/types/index.d.ts +47 -0
- package/lib/types/invariant.d.ts +15 -0
- package/lib/types/login-route.d.ts +2 -0
- package/lib/types/open-external.d.ts +24 -0
- package/lib/types/path-security.d.ts +26 -0
- package/lib/types/prefs-shared.d.ts +257 -0
- package/lib/types/pty-deps.d.ts +79 -0
- package/lib/types/pty-manager.d.ts +168 -0
- package/lib/types/tools.d.ts +34 -0
- package/lib/types/trust-fence.d.ts +24 -0
- package/lib/types/ui-tweaks/archive.d.ts +71 -0
- package/lib/types/ui-tweaks/config.d.ts +186 -0
- package/lib/types/ui-tweaks/git-web.d.ts +43 -0
- package/lib/types/ui-tweaks/git.d.ts +311 -0
- package/lib/types/ui-tweaks/index.d.ts +17 -0
- package/lib/types/ui-tweaks/mcp.d.ts +103 -0
- package/lib/types/ui-tweaks/turn-outcome.d.ts +57 -0
- package/lib/types/ui-tweaks/web.d.ts +55 -0
- package/lib/types/wire.d.ts +38 -0
- package/package.json +213 -0
- package/scripts/install.ps1 +310 -0
- package/scripts/install.sh +287 -0
- package/src/agent-opens.ts +265 -0
- package/src/agent-pty.ts +527 -0
- package/src/browser-probe.ts +26 -0
- package/src/bundle-route.ts +129 -0
- package/src/chatcode-update.ts +193 -0
- package/src/client/AccountMenu.tsx +177 -0
- package/src/client/AiRatioSection.module.css +329 -0
- package/src/client/AiRatioSection.tsx +292 -0
- package/src/client/BrowserView.tsx +289 -0
- package/src/client/ChatcodeGate.tsx +35 -0
- package/src/client/CodingPlanModelsSettings.module.css +118 -0
- package/src/client/CodingPlanModelsSettings.tsx +101 -0
- package/src/client/DiffTab.tsx +114 -0
- package/src/client/DiffView.tsx +305 -0
- package/src/client/EditorHost.tsx +563 -0
- package/src/client/FenceErrorNotice.tsx +40 -0
- package/src/client/FileTree.tsx +701 -0
- package/src/client/FreeWindow.tsx +337 -0
- package/src/client/GitView.tsx +722 -0
- package/src/client/MarkdownHtml.tsx +296 -0
- package/src/client/OrphanedTab.tsx +27 -0
- package/src/client/PdfView.tsx +110 -0
- package/src/client/ReleaseNotesDialog.tsx +91 -0
- package/src/client/RenderBoundary.tsx +49 -0
- package/src/client/SandboxStatusBar.tsx +60 -0
- package/src/client/SideCardSection.module.css +932 -0
- package/src/client/SideCardSection.tsx +1169 -0
- package/src/client/Sidebar.tsx +1857 -0
- package/src/client/TabBar.tsx +365 -0
- package/src/client/TerminalView.tsx +424 -0
- package/src/client/TextEditor.tsx +468 -0
- package/src/client/TreePanel.tsx +279 -0
- package/src/client/UpdateDialog.tsx +186 -0
- package/src/client/UpdateSettingsPanel.tsx +29 -0
- package/src/client/UpdateSettingsSection.tsx +22 -0
- package/src/client/UploadOverlay.tsx +62 -0
- package/src/client/UsageHeatmapSection.module.css +440 -0
- package/src/client/UsageHeatmapSection.tsx +301 -0
- package/src/client/add-plugin-modal.tsx +199 -0
- package/src/client/api.ts +433 -0
- package/src/client/binary-download.tsx +23 -0
- package/src/client/breakpoints.ts +61 -0
- package/src/client/browser.ts +167 -0
- package/src/client/builtins/index.ts +37 -0
- package/src/client/builtins/tabs.tsx +275 -0
- package/src/client/builtins/viewers.tsx +125 -0
- package/src/client/chat-presentation.ts +95 -0
- package/src/client/chunk-loader.ts +350 -0
- package/src/client/chunks/editor.tsx +9 -0
- package/src/client/chunks/mermaid.tsx +10 -0
- package/src/client/chunks/terminal.tsx +9 -0
- package/src/client/cm-themes.ts +129 -0
- package/src/client/conversation-draft.ts +29 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/desktop-env.ts +72 -0
- package/src/client/editor-load.ts +92 -0
- package/src/client/frame-batcher.ts +56 -0
- package/src/client/icons.tsx +170 -0
- package/src/client/image-types.ts +8 -0
- package/src/client/ime-guard.ts +47 -0
- package/src/client/index.tsx +501 -0
- package/src/client/intercept.tsx +172 -0
- package/src/client/lang.ts +225 -0
- package/src/client/layout-push.ts +37 -0
- package/src/client/layout.css +156 -0
- package/src/client/lazy-chunk.tsx +89 -0
- package/src/client/link-intercept.ts +73 -0
- package/src/client/locales-ar.ts +387 -0
- package/src/client/locales-de.ts +372 -0
- package/src/client/locales-fr.ts +379 -0
- package/src/client/locales-hi.ts +386 -0
- package/src/client/locales-id.ts +384 -0
- package/src/client/locales-it.ts +377 -0
- package/src/client/locales-ja.ts +486 -0
- package/src/client/locales-ko.ts +378 -0
- package/src/client/locales-nl.ts +384 -0
- package/src/client/locales-pl.ts +388 -0
- package/src/client/locales-pt.ts +369 -0
- package/src/client/locales-ru.ts +384 -0
- package/src/client/locales-sv.ts +369 -0
- package/src/client/locales-th.ts +386 -0
- package/src/client/locales-tr.ts +386 -0
- package/src/client/locales-vi.ts +386 -0
- package/src/client/locales-zh-HK.ts +401 -0
- package/src/client/locales-zh-MO.ts +401 -0
- package/src/client/locales-zh-TW.ts +401 -0
- package/src/client/locales.ts +1229 -0
- package/src/client/markdown-html.ts +331 -0
- package/src/client/markdown-images.ts +137 -0
- package/src/client/markdown-labels.tsx +31 -0
- package/src/client/md-toc.tsx +127 -0
- package/src/client/mermaid-blocks.ts +110 -0
- package/src/client/mermaid-sanitize.ts +93 -0
- package/src/client/mermaid.tsx +406 -0
- package/src/client/open-when-sized.ts +43 -0
- package/src/client/open-with-settings.tsx +135 -0
- package/src/client/open-with.ts +221 -0
- package/src/client/openpath-intercept.ts +79 -0
- package/src/client/paths.ts +63 -0
- package/src/client/pdf-types.ts +4 -0
- package/src/client/pinned.ts +184 -0
- package/src/client/plugin-settings.ts +43 -0
- package/src/client/plugins-shared.ts +29 -0
- package/src/client/plugins-tabs.ts +153 -0
- package/src/client/plugins-viewers.ts +44 -0
- package/src/client/prefs.ts +216 -0
- package/src/client/produced-files.ts +120 -0
- package/src/client/selection-payload.ts +86 -0
- package/src/client/service.ts +873 -0
- package/src/client/session-pins.tsx +334 -0
- package/src/client/settings-nav-icon.ts +55 -0
- package/src/client/shell-presets.ts +83 -0
- package/src/client/sidebar.module.css +3607 -0
- package/src/client/split-pane.tsx +333 -0
- package/src/client/state.ts +1646 -0
- package/src/client/tab-content-memo.ts +55 -0
- package/src/client/terminal-font.ts +224 -0
- package/src/client/terminal-links.ts +194 -0
- package/src/client/theme.ts +110 -0
- package/src/client/titlebar-strip.ts +37 -0
- package/src/client/ui-tweaks/appicons.ts +24 -0
- package/src/client/ui-tweaks/archive.tsx +281 -0
- package/src/client/ui-tweaks/branding.tsx +232 -0
- package/src/client/ui-tweaks/cachehit.tsx +122 -0
- package/src/client/ui-tweaks/gitbar.tsx +2559 -0
- package/src/client/ui-tweaks/index.tsx +1696 -0
- package/src/client/ui-tweaks/mcp.tsx +582 -0
- package/src/client/ui-tweaks/notifier.ts +514 -0
- package/src/client/ui-tweaks/whale.tsx +171 -0
- package/src/client/upload.ts +187 -0
- package/src/client/useChatcodeAccount.ts +103 -0
- package/src/client/wco.ts +120 -0
- package/src/codingplan.ts +146 -0
- package/src/config.ts +207 -0
- package/src/context-types.ts +559 -0
- package/src/fs-operations.ts +97 -0
- package/src/fs-search.ts +113 -0
- package/src/fs-tree.ts +158 -0
- package/src/git.ts +446 -0
- package/src/html-route.ts +106 -0
- package/src/index.ts +1524 -0
- package/src/invariant.ts +32 -0
- package/src/login-route.ts +26 -0
- package/src/open-external.ts +90 -0
- package/src/path-security.ts +81 -0
- package/src/prefs-shared.ts +303 -0
- package/src/pty-deps.ts +241 -0
- package/src/pty-manager.ts +376 -0
- package/src/tools.ts +482 -0
- package/src/trust-fence.ts +84 -0
- package/src/ui-tweaks/archive.ts +293 -0
- package/src/ui-tweaks/config.ts +257 -0
- package/src/ui-tweaks/git-web.ts +421 -0
- package/src/ui-tweaks/git.ts +1524 -0
- package/src/ui-tweaks/index.ts +61 -0
- package/src/ui-tweaks/mcp.ts +535 -0
- package/src/ui-tweaks/turn-outcome.ts +105 -0
- package/src/ui-tweaks/web.ts +225 -0
- package/src/wire.ts +110 -0
- package/vendor/addon-fit.js +2 -0
- package/vendor/xterm.css +218 -0
- package/vendor/xterm.js +5 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The vi (Vietnamese) dictionary for the betterSidebar namespace.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the key set of `zh` in `locales.ts`. The sidebar's `t()`
|
|
5
|
+
* consults this dict when `attachBetterLocale(store)` has been called
|
|
6
|
+
* with an active better-locale store whose `active` is `'vi'`; absent
|
|
7
|
+
* that, the existing zh/en chain runs unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Translation conventions:
|
|
10
|
+
* - Technical terms stay in English where appropriate (Git, SSH, HTTP, URL,
|
|
11
|
+
* Markdown, PDF, VS Code, API Key, Base URL, token, etc.).
|
|
12
|
+
* - Placeholders keep {name} verbatim (interpolation runs after lookup).
|
|
13
|
+
* - Formal Vietnamese appropriate for software UI.
|
|
14
|
+
* - Terminology is kept consistent with the ChatCode CLI core vi dictionary.
|
|
15
|
+
*/
|
|
16
|
+
/** The vi dictionary (key-set-equal to zh, enforced by the type annotation in locales.ts). */
|
|
17
|
+
export declare const vi: Record<string, string>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zh-HK (Traditional Chinese — Hong Kong) dictionary for the betterSidebar
|
|
3
|
+
* namespace.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the key set of `zh` in `locales.ts`. Consumed by better-locale's
|
|
6
|
+
* override store when the active override id is `'zh-HK'` (registered under
|
|
7
|
+
* the `betterSidebar` namespace). Absent that, the existing zh/en chain
|
|
8
|
+
* runs unchanged.
|
|
9
|
+
*
|
|
10
|
+
* Hong Kong regional conventions:
|
|
11
|
+
* - 软件 → 軟件 (NOT 軟體); 网络 → 網絡 (NOT 網路); 鼠标 → 滑鼠
|
|
12
|
+
* - 檔案 (file), 資料夾 (folder), 程式 (program), 程式碼 (code), 螢幕 (screen)
|
|
13
|
+
* - 預設 (default), 儲存 (save), 設定 (settings/config), 唯讀 (read-only)
|
|
14
|
+
* - 資源管理器 → 檔案總管; refresh → 重新整理; cache → 快取
|
|
15
|
+
* - timeout → 逾時; loop → 迴圈; override → 覆寫; built-in → 內建
|
|
16
|
+
* - adapter → 介面卡; interface → 介面; address → 位址; field → 欄位
|
|
17
|
+
* - byte → 位元組; binary → 二進位; character → 字元; hash → 雜湊
|
|
18
|
+
* - rename → 重新命名; archive → 歸檔; idle → 閒置; mount → 掛載
|
|
19
|
+
* - package → 套件; generate → 產生; fetch → 取得; export → 匯出
|
|
20
|
+
* - login → 登入; detect → 偵測; block → 封鎖; access → 存取
|
|
21
|
+
* - port → 連接埠; sensor → 感測器; server → 伺服器; global → 全域
|
|
22
|
+
* - nested → 巢狀; thread → 執行緒; queue → 佇列; tab → 標籤
|
|
23
|
+
* - source code → 原始碼; symlink → 符號連結; recover → 復原
|
|
24
|
+
* - placeholder → 佔位符; template → 範本; variable → 變數
|
|
25
|
+
* - through → 透過; paste → 貼上; project → 專案; account → 帳號
|
|
26
|
+
* - session (会话) → 工作階段; chat (对话) → 對話
|
|
27
|
+
* - quotation marks: "" → 「」
|
|
28
|
+
* - Placeholders keep `{name}` verbatim (interpolation runs after lookup).
|
|
29
|
+
* - English brand names (VS Code, Cursor, Zed, SSH, Git, Chrome) stay as-is.
|
|
30
|
+
*/
|
|
31
|
+
/** The zh-HK dictionary (key-set-equal to zh, enforced by the type annotation in locales.ts). */
|
|
32
|
+
export declare const zhHK: Record<string, string>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zh-HK (Traditional Chinese — Hong Kong) dictionary for the betterSidebar
|
|
3
|
+
* namespace.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the key set of `zh` in `locales.ts`. Consumed by better-locale's
|
|
6
|
+
* override store when the active override id is `'zh-HK'` (registered under
|
|
7
|
+
* the `betterSidebar` namespace). Absent that, the existing zh/en chain
|
|
8
|
+
* runs unchanged.
|
|
9
|
+
*
|
|
10
|
+
* Hong Kong regional conventions:
|
|
11
|
+
* - 软件 → 軟件 (NOT 軟體); 网络 → 網絡 (NOT 網路); 鼠标 → 滑鼠
|
|
12
|
+
* - 檔案 (file), 資料夾 (folder), 程式 (program), 程式碼 (code), 螢幕 (screen)
|
|
13
|
+
* - 預設 (default), 儲存 (save), 設定 (settings/config), 唯讀 (read-only)
|
|
14
|
+
* - 資源管理器 → 檔案總管; refresh → 重新整理; cache → 快取
|
|
15
|
+
* - timeout → 逾時; loop → 迴圈; override → 覆寫; built-in → 內建
|
|
16
|
+
* - adapter → 介面卡; interface → 介面; address → 位址; field → 欄位
|
|
17
|
+
* - byte → 位元組; binary → 二進位; character → 字元; hash → 雜湊
|
|
18
|
+
* - rename → 重新命名; archive → 歸檔; idle → 閒置; mount → 掛載
|
|
19
|
+
* - package → 套件; generate → 產生; fetch → 取得; export → 匯出
|
|
20
|
+
* - login → 登入; detect → 偵測; block → 封鎖; access → 存取
|
|
21
|
+
* - port → 連接埠; sensor → 感測器; server → 伺服器; global → 全域
|
|
22
|
+
* - nested → 巢狀; thread → 執行緒; queue → 佇列; tab → 標籤
|
|
23
|
+
* - source code → 原始碼; symlink → 符號連結; recover → 復原
|
|
24
|
+
* - placeholder → 佔位符; template → 範本; variable → 變數
|
|
25
|
+
* - through → 透過; paste → 貼上; project → 專案; account → 帳號
|
|
26
|
+
* - session (会话) → 工作階段; chat (对话) → 對話
|
|
27
|
+
* - quotation marks: "" → 「」
|
|
28
|
+
* - Placeholders keep `{name}` verbatim (interpolation runs after lookup).
|
|
29
|
+
* - English brand names (VS Code, Cursor, Zed, SSH, Git, Chrome) stay as-is.
|
|
30
|
+
*/
|
|
31
|
+
/** The zh-HK dictionary (key-set-equal to zh, enforced by the type annotation in locales.ts). */
|
|
32
|
+
export declare const zhMO: Record<string, string>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zh-HK (Traditional Chinese — Hong Kong) dictionary for the betterSidebar
|
|
3
|
+
* namespace.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the key set of `zh` in `locales.ts`. Consumed by better-locale's
|
|
6
|
+
* override store when the active override id is `'zh-HK'` (registered under
|
|
7
|
+
* the `betterSidebar` namespace). Absent that, the existing zh/en chain
|
|
8
|
+
* runs unchanged.
|
|
9
|
+
*
|
|
10
|
+
* Hong Kong regional conventions:
|
|
11
|
+
* - 软件 → 軟體 (NOT 軟體); 网络 → 網路 (NOT 網路); 鼠标 → 滑鼠
|
|
12
|
+
* - 檔案 (file), 資料夾 (folder), 程式 (program), 程式碼 (code), 螢幕 (screen)
|
|
13
|
+
* - 預設 (default), 儲存 (save), 設定 (settings/config), 唯讀 (read-only)
|
|
14
|
+
* - 資源管理器 → 檔案總管; refresh → 重新整理; cache → 快取
|
|
15
|
+
* - timeout → 逾時; loop → 迴圈; override → 覆寫; built-in → 內建
|
|
16
|
+
* - adapter → 介面卡; interface → 介面; address → 位址; field → 欄位
|
|
17
|
+
* - byte → 位元組; binary → 二進位; character → 字元; hash → 雜湊
|
|
18
|
+
* - rename → 重新命名; archive → 歸檔; idle → 閒置; mount → 掛載
|
|
19
|
+
* - package → 套件; generate → 產生; fetch → 取得; export → 匯出
|
|
20
|
+
* - login → 登入; detect → 偵測; block → 封鎖; access → 存取
|
|
21
|
+
* - port → 連接埠; sensor → 感測器; server → 伺服器; global → 全域
|
|
22
|
+
* - nested → 巢狀; thread → 執行緒; queue → 佇列; tab → 標籤
|
|
23
|
+
* - source code → 原始碼; symlink → 符號連結; recover → 復原
|
|
24
|
+
* - placeholder → 佔位符; template → 範本; variable → 變數
|
|
25
|
+
* - through → 透過; paste → 貼上; project → 專案; account → 帳號
|
|
26
|
+
* - session (会话) → 工作階段; chat (对话) → 對話
|
|
27
|
+
* - quotation marks: "" → 「」
|
|
28
|
+
* - Placeholders keep `{name}` verbatim (interpolation runs after lookup).
|
|
29
|
+
* - English brand names (VS Code, Cursor, Zed, SSH, Git, Chrome) stay as-is.
|
|
30
|
+
*/
|
|
31
|
+
/** The zh-HK dictionary (key-set-equal to zh, enforced by the type annotation in locales.ts). */
|
|
32
|
+
export declare const zhTW: Record<string, string>;
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal zh/en/ja copy for the sidebar. The copy follows the ChatCode CLI i18n system:
|
|
3
|
+
* the client apply attaches the locale service (`ctx.locale`, provided by
|
|
4
|
+
* `@deepseek-ai/dsh-client-locale`) through {@link attachLocale}, and
|
|
5
|
+
* `t()`/`isZh()` resolve the active locale from it — the Host-backed
|
|
6
|
+
* `locale.preference` wins over the raw browser language and switches live.
|
|
7
|
+
* Without an attached service (standalone/test compositions) the browser
|
|
8
|
+
* language is used, matching the previous behavior. The dictionaries are
|
|
9
|
+
* also registered into the ChatCode CLI locale registry under {@link LOCALE_NS}.
|
|
10
|
+
*
|
|
11
|
+
* ja (Japanese) is opt-in through `@huanlin/dsh-plugin-better-locale`: when
|
|
12
|
+
* that plugin is installed, the client apply also calls
|
|
13
|
+
* {@link attachBetterLocale} with the override store. `t()` then consults
|
|
14
|
+
* the store's active override id first; if it is `'ja'` (or any id whose
|
|
15
|
+
* dict has the requested key) the ja text wins, otherwise the existing
|
|
16
|
+
* zh/en chain runs unchanged. better-locale itself patches
|
|
17
|
+
* `LocaleRuntime.prototype.lookup` so ChatCode CLI's own translate chain also
|
|
18
|
+
* returns ja where the `betterSidebar` namespace has a ja entry — that
|
|
19
|
+
* path covers external callers of `ctx.locale.bind('betterSidebar')`,
|
|
20
|
+
* while the override-aware `t()` here covers better-sidebar's own
|
|
21
|
+
* components (which bypass `ctx.locale` and call `t()` directly).
|
|
22
|
+
*/
|
|
23
|
+
/** The zh dictionary (also registered into the ChatCode CLI locale registry under {@link LOCALE_NS}). */
|
|
24
|
+
export declare const zh: {
|
|
25
|
+
accountMenuSettings: string;
|
|
26
|
+
accountMenuLogout: string;
|
|
27
|
+
accountMenuLabel: string;
|
|
28
|
+
updateMenu: string;
|
|
29
|
+
updateNav: string;
|
|
30
|
+
updateSettingsDesc: string;
|
|
31
|
+
updateChecking: string;
|
|
32
|
+
updatePerforming: string;
|
|
33
|
+
updateUpToDate: string;
|
|
34
|
+
updateNow: string;
|
|
35
|
+
updateConfirm: string;
|
|
36
|
+
updateRestartHint: string;
|
|
37
|
+
updateError: string;
|
|
38
|
+
updateNotInstalled: string;
|
|
39
|
+
updateUnknown: string;
|
|
40
|
+
accountMenuChatcodeLogin: string;
|
|
41
|
+
accountMenuChatcodeStarting: string;
|
|
42
|
+
accountMenuChatcodeLogout: string;
|
|
43
|
+
chatcodeGateTitle: string;
|
|
44
|
+
chatcodeGateAction: string;
|
|
45
|
+
chatcodeGateChecking: string;
|
|
46
|
+
chatcodeGateDescription: string;
|
|
47
|
+
chatcodeGatePending: string;
|
|
48
|
+
chatcodeGateUnverified: string;
|
|
49
|
+
accountMenuChatcodeStatusError: string;
|
|
50
|
+
accountMenuChatcodeError: string;
|
|
51
|
+
accountMenuChatcodeUnverified: string;
|
|
52
|
+
accountMenuChatcodePending: string;
|
|
53
|
+
accountMenuChatcodeRetry: string;
|
|
54
|
+
accountMenuChatcodeOpen: string;
|
|
55
|
+
accountMenuChatcodeCancel: string;
|
|
56
|
+
pinnedSessions: string;
|
|
57
|
+
pinSession: string;
|
|
58
|
+
unpinSession: string;
|
|
59
|
+
pinnedSessionRename: string;
|
|
60
|
+
pinnedSessionFork: string;
|
|
61
|
+
pinnedSessionArchive: string;
|
|
62
|
+
pinnedSessionRenamePrompt: string;
|
|
63
|
+
files: string;
|
|
64
|
+
explorer: string;
|
|
65
|
+
git: string;
|
|
66
|
+
terminal: string;
|
|
67
|
+
editor: string;
|
|
68
|
+
editorExplorer: string;
|
|
69
|
+
editorExplorerDesc: string;
|
|
70
|
+
editorExplorerMerged: string;
|
|
71
|
+
editorExplorerMergedDesc: string;
|
|
72
|
+
editorExplorerSplit: string;
|
|
73
|
+
editorExplorerSplitDesc: string;
|
|
74
|
+
editorTreeToggle: string;
|
|
75
|
+
editorPathPlaceholder: string;
|
|
76
|
+
editorSearchPlaceholder: string;
|
|
77
|
+
editorSearchNoResults: string;
|
|
78
|
+
editorSearchTruncated: string;
|
|
79
|
+
editorEmptyHint: string;
|
|
80
|
+
openFileNewTab: string;
|
|
81
|
+
openFileSide: string;
|
|
82
|
+
openWithMenu: string;
|
|
83
|
+
openWithSshSuffix: string;
|
|
84
|
+
pinOpenWith: string;
|
|
85
|
+
unpinOpenWith: string;
|
|
86
|
+
openWithExplorer: string;
|
|
87
|
+
openWithVscode: string;
|
|
88
|
+
openWithCursor: string;
|
|
89
|
+
openWithZed: string;
|
|
90
|
+
openWithSettingsSshTitle: string;
|
|
91
|
+
openWithSettingsSshDesc: string;
|
|
92
|
+
openWithSettingsSshPlaceholder: string;
|
|
93
|
+
openWithSettingsCustomTitle: string;
|
|
94
|
+
openWithSettingsCustomDesc: string;
|
|
95
|
+
openWithSettingsAdd: string;
|
|
96
|
+
openWithSettingsName: string;
|
|
97
|
+
openWithSettingsTemplate: string;
|
|
98
|
+
openWithSettingsFamily: string;
|
|
99
|
+
openWithSettingsFamilyDesc: string;
|
|
100
|
+
openWithSettingsRemove: string;
|
|
101
|
+
openWithSettingsInvalidHint: string;
|
|
102
|
+
newTab: string;
|
|
103
|
+
openExplorer: string;
|
|
104
|
+
brokenSymlink: string;
|
|
105
|
+
openGit: string;
|
|
106
|
+
newTerminal: string;
|
|
107
|
+
terminalLimit: string;
|
|
108
|
+
close: string;
|
|
109
|
+
closeOtherTabs: string;
|
|
110
|
+
closeLeftTabs: string;
|
|
111
|
+
closeRightTabs: string;
|
|
112
|
+
moveToFreeWindow: string;
|
|
113
|
+
floatDropHint: string;
|
|
114
|
+
dockToSidebar: string;
|
|
115
|
+
pinTerminal: string;
|
|
116
|
+
pinAgentTerminal: string;
|
|
117
|
+
pinToWorkspace: string;
|
|
118
|
+
pinToGlobal: string;
|
|
119
|
+
unpinTerminal: string;
|
|
120
|
+
pinnedTerminalTooltip: string;
|
|
121
|
+
pinnedTerminalKindUi: string;
|
|
122
|
+
pinnedTerminalKindAgent: string;
|
|
123
|
+
pinnedTerminalScopeWorkspace: string;
|
|
124
|
+
pinnedTerminalScopeGlobal: string;
|
|
125
|
+
pinnedRailLabel: string;
|
|
126
|
+
closePinnedTerminal: string;
|
|
127
|
+
collapse: string;
|
|
128
|
+
expand: string;
|
|
129
|
+
userManual: string;
|
|
130
|
+
collapseBottomPanel: string;
|
|
131
|
+
expandBottomPanel: string;
|
|
132
|
+
terminalError: string;
|
|
133
|
+
terminalConnectFailed: string;
|
|
134
|
+
terminalRetry: string;
|
|
135
|
+
terminalDepsFailed: string;
|
|
136
|
+
terminalDepsHint: string;
|
|
137
|
+
terminalDepsProfile: string;
|
|
138
|
+
preview: string;
|
|
139
|
+
toc: string;
|
|
140
|
+
edit: string;
|
|
141
|
+
mermaidError: string;
|
|
142
|
+
mermaidZoomIn: string;
|
|
143
|
+
mermaidZoomOut: string;
|
|
144
|
+
mermaidZoomReset: string;
|
|
145
|
+
mermaidZoomHint: string;
|
|
146
|
+
refresh: string;
|
|
147
|
+
refreshUnsavedConfirm: string;
|
|
148
|
+
save: string;
|
|
149
|
+
saved: string;
|
|
150
|
+
unsaved: string;
|
|
151
|
+
saveFailed: string;
|
|
152
|
+
truncation: string;
|
|
153
|
+
binary: string;
|
|
154
|
+
loading: string;
|
|
155
|
+
error: string;
|
|
156
|
+
retry: string;
|
|
157
|
+
splitLeft: string;
|
|
158
|
+
splitRight: string;
|
|
159
|
+
splitUp: string;
|
|
160
|
+
splitDown: string;
|
|
161
|
+
notRepo: string;
|
|
162
|
+
noChanges: string;
|
|
163
|
+
statusTruncated: string;
|
|
164
|
+
stage: string;
|
|
165
|
+
unstage: string;
|
|
166
|
+
stageAll: string;
|
|
167
|
+
unstageAll: string;
|
|
168
|
+
commitPlaceholder: string;
|
|
169
|
+
commit: string;
|
|
170
|
+
commitError: string;
|
|
171
|
+
branch: string;
|
|
172
|
+
worktree: string;
|
|
173
|
+
checkoutError: string;
|
|
174
|
+
history: string;
|
|
175
|
+
changes: string;
|
|
176
|
+
staged: string;
|
|
177
|
+
unstaged: string;
|
|
178
|
+
cancel: string;
|
|
179
|
+
diffEmpty: string;
|
|
180
|
+
diffLoadError: string;
|
|
181
|
+
diffBinary: string;
|
|
182
|
+
diffAdded: string;
|
|
183
|
+
diffDeleted: string;
|
|
184
|
+
diffRenamed: string;
|
|
185
|
+
diffExpand: string;
|
|
186
|
+
diffCollapse: string;
|
|
187
|
+
discard: string;
|
|
188
|
+
discardTitle: string;
|
|
189
|
+
discardDesc: string;
|
|
190
|
+
viewCommitDiff: string;
|
|
191
|
+
copyShortHash: string;
|
|
192
|
+
copyFullHash: string;
|
|
193
|
+
copySubject: string;
|
|
194
|
+
revertCommit: string;
|
|
195
|
+
revertTitle: string;
|
|
196
|
+
revertDesc: string;
|
|
197
|
+
cherryPickCommit: string;
|
|
198
|
+
cherryPickTitle: string;
|
|
199
|
+
cherryPickDesc: string;
|
|
200
|
+
timeJustNow: string;
|
|
201
|
+
timeMinutesAgo: string;
|
|
202
|
+
timeHoursAgo: string;
|
|
203
|
+
timeYesterday: string;
|
|
204
|
+
loadMore: string;
|
|
205
|
+
historyLoadError: string;
|
|
206
|
+
produced: string;
|
|
207
|
+
producedOpen: string;
|
|
208
|
+
showInFolder: string;
|
|
209
|
+
disconnected: string;
|
|
210
|
+
exited: string;
|
|
211
|
+
noSession: string;
|
|
212
|
+
pluginNotLoaded: string;
|
|
213
|
+
hiddenFiles: string;
|
|
214
|
+
parent: string;
|
|
215
|
+
copied: string;
|
|
216
|
+
copy: string;
|
|
217
|
+
newFile: string;
|
|
218
|
+
openEditor: string;
|
|
219
|
+
gitDetail: string;
|
|
220
|
+
referenceFile: string;
|
|
221
|
+
addToConversation: string;
|
|
222
|
+
copyRelative: string;
|
|
223
|
+
copyAbsolute: string;
|
|
224
|
+
download: string;
|
|
225
|
+
uploadFiles: string;
|
|
226
|
+
uploadFolder: string;
|
|
227
|
+
uploadHere: string;
|
|
228
|
+
uploadDropHint: string;
|
|
229
|
+
uploadDropChat: string;
|
|
230
|
+
uploadTo: string;
|
|
231
|
+
uploadingTo: string;
|
|
232
|
+
uploadProgress: string;
|
|
233
|
+
uploadDone: string;
|
|
234
|
+
uploadFailed: string;
|
|
235
|
+
uploadFailedUnknown: string;
|
|
236
|
+
uploadTooLarge: string;
|
|
237
|
+
uploadCancelled: string;
|
|
238
|
+
settingsNav: string;
|
|
239
|
+
settingsIntro: string;
|
|
240
|
+
usageNav: string;
|
|
241
|
+
usageWeekdays: string;
|
|
242
|
+
usagePrevMonth: string;
|
|
243
|
+
usageNextMonth: string;
|
|
244
|
+
usageRefresh: string;
|
|
245
|
+
usageLoading: string;
|
|
246
|
+
usageEmpty: string;
|
|
247
|
+
usageError: string;
|
|
248
|
+
usageRetry: string;
|
|
249
|
+
usageLoginRequired: string;
|
|
250
|
+
usageStatTotal: string;
|
|
251
|
+
usageStatPeak: string;
|
|
252
|
+
usageStatActive: string;
|
|
253
|
+
usageStatAvg: string;
|
|
254
|
+
usageLess: string;
|
|
255
|
+
usageMore: string;
|
|
256
|
+
usageToday: string;
|
|
257
|
+
usageDayTokens: string;
|
|
258
|
+
usageTokensIn: string;
|
|
259
|
+
usageTokensOut: string;
|
|
260
|
+
aiRatioNav: string;
|
|
261
|
+
aiRatioTitle: string;
|
|
262
|
+
aiRatioDateStart: string;
|
|
263
|
+
aiRatioDateEnd: string;
|
|
264
|
+
aiRatioQuery: string;
|
|
265
|
+
aiRatioQuerying: string;
|
|
266
|
+
aiRatioExport: string;
|
|
267
|
+
aiRatioOverviewAdded: string;
|
|
268
|
+
aiRatioOverviewAi: string;
|
|
269
|
+
aiRatioOverviewRatio: string;
|
|
270
|
+
aiRatioOverviewCommits: string;
|
|
271
|
+
aiRatioTableTitle: string;
|
|
272
|
+
aiRatioColProject: string;
|
|
273
|
+
aiRatioColName: string;
|
|
274
|
+
aiRatioColEmail: string;
|
|
275
|
+
aiRatioColAuthorEmail: string;
|
|
276
|
+
aiRatioColAdditions: string;
|
|
277
|
+
aiRatioColDeletions: string;
|
|
278
|
+
aiRatioColTotal: string;
|
|
279
|
+
aiRatioColAi: string;
|
|
280
|
+
aiRatioColRatio: string;
|
|
281
|
+
aiRatioColOrg: string;
|
|
282
|
+
aiRatioColDept: string;
|
|
283
|
+
aiRatioColTitle: string;
|
|
284
|
+
aiRatioColShortId: string;
|
|
285
|
+
aiRatioColDate: string;
|
|
286
|
+
aiRatioLoading: string;
|
|
287
|
+
aiRatioEmpty: string;
|
|
288
|
+
aiRatioError: string;
|
|
289
|
+
aiRatioLoginRequired: string;
|
|
290
|
+
aiRatioRetry: string;
|
|
291
|
+
aiRatioPrevPage: string;
|
|
292
|
+
aiRatioNextPage: string;
|
|
293
|
+
aiRatioPageInfo: string;
|
|
294
|
+
codingPlanTitle: string;
|
|
295
|
+
codingPlanDesc: string;
|
|
296
|
+
codingPlanRefresh: string;
|
|
297
|
+
codingPlanRefreshing: string;
|
|
298
|
+
codingPlanLoading: string;
|
|
299
|
+
codingPlanUnavailable: string;
|
|
300
|
+
codingPlanStale: string;
|
|
301
|
+
codingPlanSelected: string;
|
|
302
|
+
codingPlanContextWindow: string;
|
|
303
|
+
codingPlanMaxToken: string;
|
|
304
|
+
settingsPopupDesc: string;
|
|
305
|
+
settingsDone: string;
|
|
306
|
+
settingsOpenTitle: string;
|
|
307
|
+
settingsOpenDesc: string;
|
|
308
|
+
settingsWidthTitle: string;
|
|
309
|
+
settingsWidthDesc: string;
|
|
310
|
+
settingsWidthSuffix: string;
|
|
311
|
+
settingsOpenPathTitle: string;
|
|
312
|
+
settingsOpenPathDesc: string;
|
|
313
|
+
settingsOpenToolsTitle: string;
|
|
314
|
+
settingsOpenToolsDesc: string;
|
|
315
|
+
settingsTitleBarTitle: string;
|
|
316
|
+
settingsTitleBarDesc: string;
|
|
317
|
+
settingsTitleBarStripTitle: string;
|
|
318
|
+
settingsTitleBarStripDesc: string;
|
|
319
|
+
settingsSchemeAutoTitle: string;
|
|
320
|
+
settingsSchemeAutoDesc: string;
|
|
321
|
+
settingsSchemeWebTitle: string;
|
|
322
|
+
settingsSchemeWebDesc: string;
|
|
323
|
+
settingsSchemeCustomTitle: string;
|
|
324
|
+
settingsSchemeCustomDesc: string;
|
|
325
|
+
settingsSchemeDetectedSuffix: string;
|
|
326
|
+
settingsCustomCssTitle: string;
|
|
327
|
+
settingsCustomCssDesc: string;
|
|
328
|
+
settingsCustomCssPlaceholder: string;
|
|
329
|
+
settingsSaveFailed: string;
|
|
330
|
+
settingsConflict: string;
|
|
331
|
+
binaryNoPreview: string;
|
|
332
|
+
downloadToView: string;
|
|
333
|
+
settingsSubagentTitle: string;
|
|
334
|
+
settingsSubagentDesc: string;
|
|
335
|
+
settingsJobsTitle: string;
|
|
336
|
+
settingsJobsDesc: string;
|
|
337
|
+
settingsToolsTitle: string;
|
|
338
|
+
settingsToolsDesc: string;
|
|
339
|
+
settingsFenceTitle: string;
|
|
340
|
+
settingsFenceDesc: string;
|
|
341
|
+
fenceErrorReason: string;
|
|
342
|
+
fenceDisableAction: string;
|
|
343
|
+
settingsBottomTerminalTitle: string;
|
|
344
|
+
settingsBottomTerminalDesc: string;
|
|
345
|
+
settingsFontFamilyTitle: string;
|
|
346
|
+
settingsFontFamilyDesc: string;
|
|
347
|
+
settingsFontFamilyPlaceholder: string;
|
|
348
|
+
settingsFontSizeTitle: string;
|
|
349
|
+
settingsFontSizeDesc: string;
|
|
350
|
+
settingsFontSizeSuffix: string;
|
|
351
|
+
settingsShellTitle: string;
|
|
352
|
+
settingsShellDesc: string;
|
|
353
|
+
settingsShellPlaceholder: string;
|
|
354
|
+
settingsShellArgsTitle: string;
|
|
355
|
+
settingsShellArgsDesc: string;
|
|
356
|
+
settingsShellArgsPlaceholder: string;
|
|
357
|
+
settingsTabsTitle: string;
|
|
358
|
+
settingsViewersTitle: string;
|
|
359
|
+
settingsGeneralTitle: string;
|
|
360
|
+
settingsPopup: string;
|
|
361
|
+
settingsViewerCatchAll: string;
|
|
362
|
+
viewerImage: string;
|
|
363
|
+
viewerPdf: string;
|
|
364
|
+
viewerMarkdown: string;
|
|
365
|
+
viewerCode: string;
|
|
366
|
+
viewerBinary: string;
|
|
367
|
+
viewerHtml: string;
|
|
368
|
+
browser: string;
|
|
369
|
+
browserPlaceholder: string;
|
|
370
|
+
browserGo: string;
|
|
371
|
+
browserBack: string;
|
|
372
|
+
browserForward: string;
|
|
373
|
+
browserStart: string;
|
|
374
|
+
browserBlockedScheme: string;
|
|
375
|
+
browserBlockedLoopback: string;
|
|
376
|
+
browserInvalid: string;
|
|
377
|
+
browserNoSandboxWarning: string;
|
|
378
|
+
htmlNoSandboxWarning: string;
|
|
379
|
+
sandboxStatusOn: string;
|
|
380
|
+
sandboxUnlock: string;
|
|
381
|
+
sandboxRestore: string;
|
|
382
|
+
settingsHtmlDefaultUnsafeTitle: string;
|
|
383
|
+
settingsHtmlDefaultUnsafeDesc: string;
|
|
384
|
+
settingsHtmlSandboxTitle: string;
|
|
385
|
+
settingsHtmlSandboxDesc: string;
|
|
386
|
+
settingsBrowserSandboxTitle: string;
|
|
387
|
+
settingsBrowserSandboxDesc: string;
|
|
388
|
+
settingsBrowserLinksTitle: string;
|
|
389
|
+
settingsBrowserLinksDesc: string;
|
|
390
|
+
settingsBrowserHttpTitle: string;
|
|
391
|
+
settingsBrowserHttpDesc: string;
|
|
392
|
+
settingsBrowserHttpsTitle: string;
|
|
393
|
+
settingsBrowserHttpsDesc: string;
|
|
394
|
+
settingsBrowserLoopbackTitle: string;
|
|
395
|
+
settingsBrowserLoopbackDesc: string;
|
|
396
|
+
settingsBrowserLoopbackPlaceholder: string;
|
|
397
|
+
browserOpenExternal: string;
|
|
398
|
+
browserEmbedBlocked: string;
|
|
399
|
+
browserEmbedBlockedDesc: string;
|
|
400
|
+
browserEmbedAnyway: string;
|
|
401
|
+
subagent: string;
|
|
402
|
+
openSubagent: string;
|
|
403
|
+
subagentMainAgent: string;
|
|
404
|
+
subagentEmpty: string;
|
|
405
|
+
subagentEmptyDesc: string;
|
|
406
|
+
subagentRunning: string;
|
|
407
|
+
subagentInactive: string;
|
|
408
|
+
subagentModeOneShot: string;
|
|
409
|
+
subagentModeContinuable: string;
|
|
410
|
+
subagentCount: string;
|
|
411
|
+
subagentCountRunning: string;
|
|
412
|
+
subagentDiagCorrupt: string;
|
|
413
|
+
subagentDiagUnsupported: string;
|
|
414
|
+
subagentDiagUnavailable: string;
|
|
415
|
+
subagentThinking: string;
|
|
416
|
+
sideChat: string;
|
|
417
|
+
sideChatNew: string;
|
|
418
|
+
sideChatUntitled: string;
|
|
419
|
+
sideChatEmpty: string;
|
|
420
|
+
sideChatEmptyDesc: string;
|
|
421
|
+
sideChatCreating: string;
|
|
422
|
+
sideChatRetry: string;
|
|
423
|
+
sideChatThreads: string;
|
|
424
|
+
sideChatSave: string;
|
|
425
|
+
sideChatSaveTitle: string;
|
|
426
|
+
sideChatSaved: string;
|
|
427
|
+
sideChatNoTurn: string;
|
|
428
|
+
sideChatPendingDrop: string;
|
|
429
|
+
sideChatFirstPlaceholder: string;
|
|
430
|
+
sideChatComposerPlaceholder: string;
|
|
431
|
+
sideChatThinking: string;
|
|
432
|
+
sideChatThink: string;
|
|
433
|
+
sideChatInjection: string;
|
|
434
|
+
sideChatSend: string;
|
|
435
|
+
sideChatCancel: string;
|
|
436
|
+
sideChatCancelTitle: string;
|
|
437
|
+
sideChatClose: string;
|
|
438
|
+
sideChatCloseTitle: string;
|
|
439
|
+
sideChatError: string;
|
|
440
|
+
jobs: string;
|
|
441
|
+
jobsCount: string;
|
|
442
|
+
jobsCountRunning: string;
|
|
443
|
+
jobStatusRunning: string;
|
|
444
|
+
jobStatusStopping: string;
|
|
445
|
+
jobStatusCompleted: string;
|
|
446
|
+
jobStatusKilled: string;
|
|
447
|
+
jobStatusFailed: string;
|
|
448
|
+
jobDurationSeconds: string;
|
|
449
|
+
jobDurationMinutes: string;
|
|
450
|
+
jobDurationHours: string;
|
|
451
|
+
jobViewOutput: string;
|
|
452
|
+
jobHideOutput: string;
|
|
453
|
+
jobNoOutput: string;
|
|
454
|
+
jobNotReadYet: string;
|
|
455
|
+
jobOutputTruncated: string;
|
|
456
|
+
jobOutputError: string;
|
|
457
|
+
jobKill: string;
|
|
458
|
+
jobKillConfirm: string;
|
|
459
|
+
jobKillError: string;
|
|
460
|
+
addPluginsTabCard: string;
|
|
461
|
+
addPluginsTabCardDesc: string;
|
|
462
|
+
addPluginsViewerCard: string;
|
|
463
|
+
addPluginsViewerCardDesc: string;
|
|
464
|
+
addPluginsTabDesc: string;
|
|
465
|
+
addPluginsViewerDesc: string;
|
|
466
|
+
addPluginsBrowseMore: string;
|
|
467
|
+
addPluginsSearch: string;
|
|
468
|
+
addPluginsNoMatch: string;
|
|
469
|
+
addPluginsRecommended: string;
|
|
470
|
+
addPluginsEmpty: string;
|
|
471
|
+
openPlugin: string;
|
|
472
|
+
copyInstall: string;
|
|
473
|
+
pluginMdExportDesc: string;
|
|
474
|
+
pluginOfficeDesc: string;
|
|
475
|
+
pluginFlowglassDesc: string;
|
|
476
|
+
pluginGitForgeDesc: string;
|
|
477
|
+
pluginGithubWorkbenchDesc: string;
|
|
478
|
+
pluginSuhuangScrollDesc: string;
|
|
479
|
+
pluginBetterOverleafDesc: string;
|
|
480
|
+
pluginGitRemotesDesc: string;
|
|
481
|
+
pluginSentinelDesc: string;
|
|
482
|
+
pluginServerDeckDesc: string;
|
|
483
|
+
pluginSidebarQaDesc: string;
|
|
484
|
+
pluginSidenoteDesc: string;
|
|
485
|
+
pluginSshTunnelDesc: string;
|
|
486
|
+
pluginTurnReviewDesc: string;
|
|
487
|
+
pluginVideoPreviewDesc: string;
|
|
488
|
+
pluginCodeNavDesc: string;
|
|
489
|
+
pluginDocsPanelDesc: string;
|
|
490
|
+
pluginEgoBrowserDesc: string;
|
|
491
|
+
pluginBilingualReaderDesc: string;
|
|
492
|
+
};
|
|
493
|
+
/** The en dictionary (key-set-equal to zh, enforced by the type annotation). */
|
|
494
|
+
export declare const en: Record<keyof typeof zh, string>;
|
|
495
|
+
/**
|
|
496
|
+
* The dictionary namespace this plugin owns in the ChatCode CLI locale registry
|
|
497
|
+
* (`'sidebar'` is taken by ChatCode CLI's own ui-sidebar, hence this distinct name).
|
|
498
|
+
*/
|
|
499
|
+
export declare const LOCALE_NS = "betterSidebar";
|
|
500
|
+
/** The ja dictionary (key-set-equal to zh, enforced by the type annotation). */
|
|
501
|
+
export declare const ja: Record<keyof typeof zh, string>;
|
|
502
|
+
export declare const de: Record<keyof typeof zh, string>;
|
|
503
|
+
export declare const fr: Record<keyof typeof zh, string>;
|
|
504
|
+
export declare const pt: Record<keyof typeof zh, string>;
|
|
505
|
+
export declare const ko: Record<keyof typeof zh, string>;
|
|
506
|
+
export declare const ar: Record<keyof typeof zh, string>;
|
|
507
|
+
export declare const hi: Record<keyof typeof zh, string>;
|
|
508
|
+
export declare const id: Record<keyof typeof zh, string>;
|
|
509
|
+
export declare const tr: Record<keyof typeof zh, string>;
|
|
510
|
+
export declare const vi: Record<keyof typeof zh, string>;
|
|
511
|
+
export declare const th: Record<keyof typeof zh, string>;
|
|
512
|
+
export declare const ru: Record<keyof typeof zh, string>;
|
|
513
|
+
export declare const it: Record<keyof typeof zh, string>;
|
|
514
|
+
export declare const nl: Record<keyof typeof zh, string>;
|
|
515
|
+
export declare const sv: Record<keyof typeof zh, string>;
|
|
516
|
+
export declare const pl: Record<keyof typeof zh, string>;
|
|
517
|
+
export declare const zhHK: Record<keyof typeof zh, string>;
|
|
518
|
+
export declare const zhTW: Record<keyof typeof zh, string>;
|
|
519
|
+
export declare const zhMO: Record<keyof typeof zh, string>;
|
|
520
|
+
/**
|
|
521
|
+
* The better-locale override store attached by the client apply
|
|
522
|
+
* (absent → no override; the zh/en chain runs). The store's `active`
|
|
523
|
+
* field holds the user's chosen override id (e.g. `'ja'`); `undefined`
|
|
524
|
+
* means "no override, use ChatCode CLI native zh/en".
|
|
525
|
+
*
|
|
526
|
+
* The override only takes effect when ChatCode CLI's active locale is `'en'`
|
|
527
|
+
* (it borrows ChatCode CLI's English slot to render a third language). While
|
|
528
|
+
* ChatCode CLI is on `'zh'` the override is inert — `getOverride` returns
|
|
529
|
+
* `undefined` and `isOverrideActive` returns `false` — so `t()` and
|
|
530
|
+
* `isZh()` fall through to the native zh/en chain unchanged.
|
|
531
|
+
*/
|
|
532
|
+
declare let betterLocaleStore: {
|
|
533
|
+
readonly active: string | undefined;
|
|
534
|
+
getOverride(dshActive: string, ns: string, key: string): string | undefined;
|
|
535
|
+
isOverrideActive(dshActive: string): boolean;
|
|
536
|
+
} | undefined;
|
|
537
|
+
/**
|
|
538
|
+
* Attach (or detach, with undefined) the ChatCode CLI locale service. The sidebar
|
|
539
|
+
* mounts its own React root outside the slot system's locale seat, so the
|
|
540
|
+
* service rides this module-level holder: components keep calling the plain
|
|
541
|
+
* `t()` function, and the Sidebar root's locale subscription re-renders the
|
|
542
|
+
* whole tree on switches.
|
|
543
|
+
*/
|
|
544
|
+
export declare function attachLocale(service: {
|
|
545
|
+
getSnapshot(): {
|
|
546
|
+
active: string;
|
|
547
|
+
};
|
|
548
|
+
} | undefined): void;
|
|
549
|
+
/**
|
|
550
|
+
* Attach (or detach, with undefined) the better-locale override store.
|
|
551
|
+
* When attached with an active override, `t()` consults the store's
|
|
552
|
+
* `getOverride(active, LOCALE_NS, key)` first; if it returns a string,
|
|
553
|
+
* that text wins over the zh/en chain. Detaching (or the store's active
|
|
554
|
+
* being `undefined`) restores the zh/en chain unchanged.
|
|
555
|
+
*
|
|
556
|
+
* The Sidebar root subscribes to the store separately (see Sidebar.tsx)
|
|
557
|
+
* so an override change re-renders the whole tree — the locale service's
|
|
558
|
+
* own revision bump (which better-locale triggers via `publish(active, true)`)
|
|
559
|
+
* does NOT fire the existing `localeRevision` uSES because that snapshot
|
|
560
|
+
* reads `getSnapshot().active` (unchanged) rather than `revision`.
|
|
561
|
+
*/
|
|
562
|
+
export declare function attachBetterLocale(store: typeof betterLocaleStore): void;
|
|
563
|
+
/** Translate a copy key in the active locale (zh → zh, else en). */
|
|
564
|
+
export type CopyKey = keyof typeof zh;
|
|
565
|
+
/** Translate a copy key; `{name}` placeholders interpolate from `params`. */
|
|
566
|
+
export declare function t(key: CopyKey, params?: Record<string, string | number>): string;
|
|
567
|
+
/** Whether the active locale is Chinese (used for selectors). */
|
|
568
|
+
export declare function isZh(): boolean;
|
|
569
|
+
/** Format an ISO 8601 author date relative to now (刚刚 / N 分钟前 / N 小时前 / 昨天 / date). */
|
|
570
|
+
export declare function relativeTime(iso: string): string;
|
|
571
|
+
export {};
|