feat: added i18n support; added Simplified Chinese support

This commit is contained in:
Xiaohan-Tian
2026-05-30 20:02:55 -07:00
parent c17d169dc6
commit 957f6db950
58 changed files with 3354 additions and 520 deletions
+3 -2
View File
@@ -1,12 +1,13 @@
import type { ChordGuideCustomConfig } from '../ChordGuideTypes';
import { KGConfigStorage } from '../io/KGConfigStorage';
import type { LanguageSetting } from '../../i18n/types';
/**
* Application configuration interface
*/
interface AppConfig {
general: {
language: string;
language: LanguageSetting;
llm_provider: 'local_browser' | 'openai' | 'gemini' | 'claude' | 'claude_openrouter' | 'openai_compatible';
persist_api_keys_non_localhost: boolean;
local_browser: {
@@ -205,7 +206,7 @@ export class ConfigManager {
// Fallback to minimal hardcoded config
this.defaultConfig = {
general: {
language: 'en_us',
language: 'auto',
llm_provider: 'local_browser',
persist_api_keys_non_localhost: false,
openai: {