Skip to content

Commit

Permalink
🌐 refactor(localization): 统一配置项命名风格
Browse files Browse the repository at this point in the history
- 将 `apikey` 统一修改为 `apiKey`
- 将 `baseurl` 统一修改为 `baseUrl`
- 同步更新英文和中文翻译文件中的键名
  • Loading branch information
littleCareless committed Dec 11, 2024
1 parent 28662ab commit 74ae537
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"openai.apikey.missing": "OpenAI API Key is not configured. Would you like to configure it now?",
"ollama.baseurl.missing": "Ollama Base URL is not configured. Would you like to configure it now?",
"openai.apiKey.missing": "OpenAI API Key is not configured. Would you like to configure it now?",
"ollama.baseUrl.missing": "Ollama Base URL is not configured. Would you like to configure it now?",
"diff.simplification.warning": "Diff simplification is enabled. This may affect the accuracy of AI-generated commit messages. For more accurate commit messages, consider disabling this feature.",
"command.execution.failed": "Command execution failed",
"scm.not.detected": "No supported version control system detected",
Expand All @@ -14,9 +14,9 @@
"generate.commit.failed": "Failed to generate commit message: {0}",
"get.models.failed": "Failed to get model list",
"openai.config.required": "OpenAI API configuration is required to use this feature. Would you like to configure it now?",
"openai.baseurl.prompt": "Enter OpenAI API URL",
"openai.baseurl.placeholder": "e.g., https://api.openai.com/v1",
"openai.apikey.prompt": "Enter OpenAI API Key",
"openai.baseUrl.prompt": "Enter OpenAI API URL",
"openai.baseUrl.placeholder": "e.g., https://api.openai.com/v1",
"openai.apiKey.prompt": "Enter OpenAI API Key",
"ai.model.picker.title": "Select AI Model",
"ai.model.picker.placeholder": "Select AI model for generating commit messages",
"model.update.success": "AI model settings updated to: {0} - {1}",
Expand Down
10 changes: 5 additions & 5 deletions i18n/zh-cn.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"openai.apikey.missing": "OpenAI API Key 未配置。是否现在配置?",
"ollama.baseurl.missing": "Ollama Base URL 未配置。是否现在配置?",
"openai.apiKey.missing": "OpenAI API Key 未配置。是否现在配置?",
"ollama.baseUrl.missing": "Ollama Base URL 未配置。是否现在配置?",
"diff.simplification.warning": "Diff 简化功能已启用。这可能会影响 AI 生成提交信息的准确性。如需获取更准确的提交信息,建议禁用此功能。",
"command.execution.failed": "执行命令失败",
"scm.not.detected": "未检测到支持的版本控制系统",
Expand All @@ -14,9 +14,9 @@
"generate.commit.failed": "生成提交信息失败: {0}",
"get.models.failed": "获取模型列表失败",
"openai.config.required": "需要配置 OpenAI API 信息才能使用该功能,是否现在配置?",
"openai.baseurl.prompt": "请输入 OpenAI API 地址",
"openai.baseurl.placeholder": "例如: https://api.openai.com/v1",
"openai.apikey.prompt": "请输入 OpenAI API Key",
"openai.baseUrl.prompt": "请输入 OpenAI API 地址",
"openai.baseUrl.placeholder": "例如: https://api.openai.com/v1",
"openai.apiKey.prompt": "请输入 OpenAI API Key",
"ai.model.picker.title": "选择 AI 模型",
"ai.model.picker.placeholder": "选择用于生成提交信息的 AI 模型",
"model.update.success": "已更新 AI 模型设置为: {0} - {1}",
Expand Down

0 comments on commit 74ae537

Please sign in to comment.