Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/ui/Wizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function LanguageStep({
const items: SelectItem<LanguageCode>[] = getSupportedLanguages().map((code) => ({
value: code,
label: LANGUAGE_LABELS[code],
hint: code === detectSystemLanguage() ? "(detected)" : undefined,
hint: code === detectSystemLanguage() ? t("wizard.languageDetectedHint") : undefined,
}));
return (
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
Expand Down
1 change: 1 addition & 0 deletions src/i18n/EN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ export const EN: TranslationSchema = {
wizard: {
languageTitle: "Choose your language",
languageSubtitle: "Detected from your system locale. Switch later via /language.",
languageDetectedHint: "(detected)",
welcomeTitle: "Welcome to Carbon Code.",
apiKeyPrompt: "Paste your DeepSeek API key to get started.",
apiKeyGetOne: "Get one at: https://platform.deepseek.com/api_keys",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ export interface TranslationSchema {
wizard: {
languageTitle: string;
languageSubtitle: string;
languageDetectedHint: string;
welcomeTitle: string;
apiKeyPrompt: string;
apiKeyGetOne: string;
Expand Down
1 change: 1 addition & 0 deletions src/i18n/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ export const zhCN: TranslationSchema = {
wizard: {
languageTitle: "选择语言",
languageSubtitle: "已根据系统语言自动选中。之后可用 /language 切换。",
languageDetectedHint: "(已检测)",
welcomeTitle: "欢迎使用 Carbon Code。",
apiKeyPrompt: "粘贴你的 DeepSeek API key 开始使用。",
apiKeyGetOne: "在此获取:https://platform.deepseek.com/api_keys",
Expand Down
2 changes: 2 additions & 0 deletions tests/wizard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ describe("Wizard — first-launch language picker", () => {
expect(out).toContain("选择语言");
expect(out).toContain("English");
expect(out).toContain("简体中文");
expect(out).toContain("(已检测)");
expect(out).not.toContain("(detected)");
unmount();
});
});
Expand Down