fix(i18n): translate backend errors at UI boundaries

This commit is contained in:
Rahul authored and GitHub committed 2026-07-29 02:40:45 +08:00
1 parent 4422ac8e01
commit 2f44d36018
82 files changed
+1862 -335

No files matched your search

@@ -2304,7 +2304,7 @@ const aiEndpointHint = computed(() => {
return t("ai.anthropicMessagesHint");
}
if (aiEditProvider.value === "openai-compatible" || aiEditProvider.value === "custom") {
return "大多数 OpenAI 兼容 API 需要 /v1 路径前缀";
return t("ai.openAiCompatibleEndpointHint");
}
return "";
});
@@ -4525,7 +4525,7 @@ onUnmounted(cleanupPreviewEditor);
<SelectTrigger><SelectValue /></SelectTrigger>
<SelectContent>
<SelectItem value="github">GitHub Gist</SelectItem>
<SelectItem value="gitee">Gitee 代码片段</SelectItem>
<SelectItem value="gitee">{{ t("settings.syncSnippetProviderGitee") }}</SelectItem>
</SelectContent>
</Select>
</div>