feat(usage): v0.7.6 — OpenCode Go 套餐用量查询(5h/7天/30天三窗口)+ 插件市场入口暂时隐藏(功能保留)
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
Release / Attach macOS install script (push) Canceled after 0s

This commit is contained in:
KimiSwitch Dev committed 2026-08-18 19:09:54 +08:00
1 parent 9a3875d990
commit 6b761251bc
24 files changed
+3353 -77

No files matched your search

+48
View File
@@ -422,6 +422,7 @@ export const enTranslations: Record<TranslationKey, string> = {
usageUnsupportedProvider: "This provider is not supported by auto query",
usageTier5h: "5-hour",
usageTierWeekly: "Weekly",
usageTierMonthly: "Monthly",
usageErrNoKey: "No API key configured",
usageErrDisabled: "Usage query is disabled in the config panel",
usageErrLoginExpired: "Kimi Code login expired and auto-refresh failed; run `kimi login` again",
@@ -514,4 +515,51 @@ export const enTranslations: Record<TranslationKey, string> = {
"Open the new Web UI in an independent in-app window, or in your system browser (built into kimi-code 0.33+). Requires the kimi CLI on PATH.",
openWebUIEmbedded: "Open in App",
openWebUIBrowser: "Open in Browser",
// Plugin marketplace
pluginMarketplace: "Plugin Marketplace",
pluginMarketplaceSubtitle:
"Browse and install Kimi Code plugins — official and community, with install, update, and enable/disable management.",
pluginSearchPlaceholder: "Search by name, description, keyword, or ID…",
pluginSectionInstalled: "Installed",
pluginSectionOfficial: "Official",
pluginSectionCommunity: "Community",
pluginCustomInstall: "Custom",
pluginUpdateAvailable: "Update available",
pluginCapabilityRequired: "Install inside kimi-code (/plugins)",
pluginInstall: "Install",
pluginUpdate: "Update",
pluginEnable: "Enable",
pluginDisable: "Disable",
pluginRemove: "Remove",
pluginInstalling: "Installing…",
pluginUpdating: "Updating…",
pluginToggling: "Switching…",
pluginRemoving: "Removing…",
pluginTrustTitle: "Install third-party plugin?",
pluginTrustDesc:
"This plugin comes from {source}. Plugins can contribute MCP tools, hooks, and commands, and may access your sessions and files. Only install from sources you trust.",
pluginTrustInstall: "Trust & install",
pluginRemoveTitle: "Remove plugin?",
pluginRemoveConfirm:
"Remove \"{name}\"? Run /reload in kimi-code or start a new session afterwards to apply.",
pluginInstalledMsg:
"\"{name}\" installed. Run /reload in kimi-code or start a new session to apply.",
pluginUpdatedMsg:
"\"{name}\" updated. Run /reload in kimi-code or start a new session to apply.",
pluginEnabledMsg:
"\"{name}\" enabled. Run /reload in kimi-code or start a new session to apply.",
pluginDisabledMsg:
"\"{name}\" disabled. Run /reload in kimi-code or start a new session to apply.",
pluginRemovedMsg:
"\"{name}\" removed. Run /reload in kimi-code or start a new session to apply.",
pluginCopyReload: "Copy /reload",
pluginReloadCopied: "Copied",
pluginCacheNotice: "Showing cached data (fetched {time})",
pluginCatalogFailed:
"Failed to load the plugin catalog; showing locally installed plugins",
pluginInstalledListFailed: "Failed to load the installed plugin list",
pluginEmptyResults: "No matching plugins",
pluginNoPlugins: "No plugins available",
pluginHomepage: "Homepage",
};
+41
View File
@@ -417,6 +417,7 @@ export const zhTranslations = {
usageUnsupportedProvider: "此供应商暂不支持自动查询",
usageTier5h: "5小时",
usageTierWeekly: "7天",
usageTierMonthly: "30天",
usageErrNoKey: "未配置 API Key",
usageErrDisabled: "用量查询已在配置面板中停用",
usageErrLoginExpired: "Kimi Code 登录已过期且自动续期失败,请重新运行 `kimi login`",
@@ -506,6 +507,46 @@ export const zhTranslations = {
"以独立窗口在应用内打开新版 Web 界面,也可以选择在系统浏览器打开(kimi-code 0.33+ 内置 code-app;需要 kimi 命令在 PATH 中)。",
openWebUIEmbedded: "在应用内打开",
openWebUIBrowser: "在浏览器打开",
// Plugin marketplace
pluginMarketplace: "插件市场",
pluginMarketplaceSubtitle:
"浏览并安装 Kimi Code 插件:官方、社区插件均可安装,支持更新与启用/禁用管理。",
pluginSearchPlaceholder: "搜索插件名称、描述、关键词或 ID…",
pluginSectionInstalled: "已安装",
pluginSectionOfficial: "官方",
pluginSectionCommunity: "社区",
pluginCustomInstall: "自定义安装",
pluginUpdateAvailable: "有更新",
pluginCapabilityRequired: "需在 kimi-code 内安装(/plugins)",
pluginInstall: "安装",
pluginUpdate: "更新",
pluginEnable: "启用",
pluginDisable: "禁用",
pluginRemove: "移除",
pluginInstalling: "安装中…",
pluginUpdating: "更新中…",
pluginToggling: "切换中…",
pluginRemoving: "移除中…",
pluginTrustTitle: "安装第三方插件?",
pluginTrustDesc:
"该插件来自 {source}。插件可贡献 MCP 工具、hooks 与命令,并可能访问你的会话和文件。请仅安装你信任的来源。",
pluginTrustInstall: "信任并安装",
pluginRemoveTitle: "移除插件?",
pluginRemoveConfirm: "确定移除「{name}」?移除后请在 kimi-code 中 /reload 或开新会话生效。",
pluginInstalledMsg: "「{name}」已安装。请在 kimi-code 中 /reload 或开新会话生效。",
pluginUpdatedMsg: "「{name}」已更新。请在 kimi-code 中 /reload 或开新会话生效。",
pluginEnabledMsg: "「{name}」已启用。请在 kimi-code 中 /reload 或开新会话生效。",
pluginDisabledMsg: "「{name}」已禁用。请在 kimi-code 中 /reload 或开新会话生效。",
pluginRemovedMsg: "「{name}」已移除。请在 kimi-code 中 /reload 或开新会话生效。",
pluginCopyReload: "复制 /reload",
pluginReloadCopied: "已复制",
pluginCacheNotice: "显示缓存数据(获取于 {time})",
pluginCatalogFailed: "插件目录加载失败,已改用本地已安装列表",
pluginInstalledListFailed: "已安装插件列表加载失败",
pluginEmptyResults: "没有匹配的插件",
pluginNoPlugins: "暂无插件",
pluginHomepage: "主页",
} as const;
export type TranslationKey = keyof typeof zhTranslations;