From 0c53dcfa80b753e1aec1fabc58ad6bc50b8cb2e0 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:00:42 +0800 Subject: [PATCH] docs(i18n): rename model mappings to aliases in ui strings --- src/i18n/locales/en.json | 34 +++++++++++++++++----------------- src/i18n/locales/zh-CN.json | 36 ++++++++++++++++++------------------ 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index f424856..0f6c411 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -249,10 +249,10 @@ "vertex_edit_modal_url_label": "Base URL (Required):", "vertex_edit_modal_proxy_label": "Proxy URL (Optional):", "vertex_delete_confirm": "Are you sure you want to delete this Vertex configuration?", - "vertex_models_label": "Model mappings (alias required):", + "vertex_models_label": "Model aliases (alias required):", "vertex_models_add_btn": "Add Mapping", - "vertex_models_hint": "Each mapping needs both the original model and its alias.", - "vertex_models_count": "Mapping count", + "vertex_models_hint": "Each alias needs both the original model and the alias.", + "vertex_models_count": "Alias count", "ampcode_title": "Amp CLI Integration (ampcode)", "ampcode_modal_title": "Configure Ampcode", "ampcode_upstream_url_label": "Upstream URL", @@ -513,9 +513,9 @@ "upgrade_required_desc": "The current server does not support the OAuth excluded models API. Please upgrade to the latest CLI Proxy API (CPA) version." }, "oauth_model_mappings": { - "title": "OAuth Model Mappings", - "add": "Add Mapping", - "add_title": "Add provider model mappings", + "title": "OAuth Model Aliases", + "add": "Add Alias", + "add_title": "Add provider model aliases", "provider_label": "Provider", "provider_placeholder": "e.g. gemini-cli / vertex", "provider_hint": "Defaults to the current filter; pick an existing provider or type a new name.", @@ -525,26 +525,26 @@ "model_source_loading": "Loading models...", "model_source_unsupported": "The current CPA version does not support fetching model lists (manual input still works).", "model_source_loaded": "{{count}} models loaded. Use the dropdown in “Source model name”, or type custom values.", - "mappings_label": "Model mappings", + "mappings_label": "Model aliases", "mapping_name_placeholder": "Source model name", "mapping_alias_placeholder": "Alias (required)", "mapping_fork_label": "Keep original", "mappings_hint": "Saving an empty list removes that provider. Enable “Keep original” to keep the original name while adding the alias.", - "add_mapping": "Add mapping", + "add_mapping": "Add alias", "save": "Save/Update", - "save_success": "Model mappings updated", - "save_failed": "Failed to update model mappings", + "save_success": "Model aliases updated", + "save_failed": "Failed to update model aliases", "delete": "Delete Provider", - "delete_confirm": "Delete model mappings for {{provider}}?", - "delete_success": "Model mappings removed", - "delete_failed": "Failed to delete model mappings", - "no_models": "No model mappings", - "model_count": "{{count}} mappings", - "list_empty_all": "No model mappings yet—use “Add Mapping” to create one.", + "delete_confirm": "Delete model aliases for {{provider}}?", + "delete_success": "Model aliases removed", + "delete_failed": "Failed to delete model aliases", + "no_models": "No model aliases", + "model_count": "{{count}} aliases", + "list_empty_all": "No model aliases yet—use “Add Alias” to create one.", "provider_required": "Please enter a provider first", "upgrade_required": "This feature requires a newer CLI Proxy API (CPA) version. Please upgrade.", "upgrade_required_title": "Please upgrade CLI Proxy API", - "upgrade_required_desc": "The current server does not support the OAuth model mappings API. Please upgrade to the latest CLI Proxy API (CPA) version." + "upgrade_required_desc": "The current server does not support the OAuth model aliases API. Please upgrade to the latest CLI Proxy API (CPA) version." }, "auth_login": { "codex_oauth_title": "Codex OAuth", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index 98b64c3..819e63b 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -249,10 +249,10 @@ "vertex_edit_modal_url_label": "Base URL (必填):", "vertex_edit_modal_proxy_label": "代理 URL (可选):", "vertex_delete_confirm": "确定要删除这个Vertex配置吗?", - "vertex_models_label": "模型映射 (别名必填):", + "vertex_models_label": "模型别名 (别名必填):", "vertex_models_add_btn": "添加映射", - "vertex_models_hint": "每条映射需要填写原模型与别名。", - "vertex_models_count": "映射数量", + "vertex_models_hint": "每条别名需要填写原模型与别名。", + "vertex_models_count": "别名数量", "ampcode_title": "Amp CLI 集成 (ampcode)", "ampcode_modal_title": "配置 Ampcode", "ampcode_upstream_url_label": "Upstream URL", @@ -513,9 +513,9 @@ "upgrade_required_desc": "当前服务器版本不支持获取模型排除列表功能,请升级到最新版本的 CPA(CLI Proxy API)后重试。" }, "oauth_model_mappings": { - "title": "OAuth 模型映射", - "add": "新增映射", - "add_title": "新增提供商模型映射", + "title": "OAuth 模型别名", + "add": "新增别名", + "add_title": "新增提供商模型别名", "provider_label": "提供商", "provider_placeholder": "例如 gemini-cli / vertex", "provider_hint": "默认选中当前筛选的提供商,也可直接输入或选择其他名称。", @@ -525,26 +525,26 @@ "model_source_loading": "正在加载模型列表...", "model_source_unsupported": "当前 CPA 版本不支持获取模型列表(仍可手动输入)。", "model_source_loaded": "已加载 {{count}} 个模型,可在“原模型名称”中下拉选择;也可手动输入。", - "mappings_label": "模型映射", + "mappings_label": "模型别名", "mapping_name_placeholder": "原模型名称", "mapping_alias_placeholder": "别名 (必填)", "mapping_fork_label": "保留原名", "mappings_hint": "留空保存将删除该提供商记录;开启“保留原名”会在保留原模型名的同时新增别名。", - "add_mapping": "添加映射", + "add_mapping": "添加别名", "save": "保存/更新", - "save_success": "模型映射已更新", - "save_failed": "更新模型映射失败", + "save_success": "模型别名已更新", + "save_failed": "更新模型别名失败", "delete": "删除提供商", - "delete_confirm": "确定要删除 {{provider}} 的模型映射吗?", - "delete_success": "已删除该提供商的模型映射", - "delete_failed": "删除模型映射失败", - "no_models": "未配置模型映射", - "model_count": "映射 {{count}} 条模型", - "list_empty_all": "暂无任何提供商的模型映射,点击“新增映射”创建。", + "delete_confirm": "确定要删除 {{provider}} 的模型别名吗?", + "delete_success": "已删除该提供商的模型别名", + "delete_failed": "删除模型别名失败", + "no_models": "未配置模型别名", + "model_count": "{{count}} 条别名", + "list_empty_all": "暂无任何提供商的模型别名,点击“新增别名”创建。", "provider_required": "请先填写提供商名称", - "upgrade_required": "当前 CPA 版本不支持模型映射功能,请升级 CPA 版本", + "upgrade_required": "当前 CPA 版本不支持模型别名功能,请升级 CPA 版本", "upgrade_required_title": "需要升级 CPA 版本", - "upgrade_required_desc": "当前服务器版本不支持 OAuth 模型映射功能,请升级到最新版本的 CPA(CLI Proxy API)后重试。" + "upgrade_required_desc": "当前服务器版本不支持 OAuth 模型别名功能,请升级到最新版本的 CPA(CLI Proxy API)后重试。" }, "auth_login": { "codex_oauth_title": "Codex OAuth",