mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
feat: Add Portuguese (pt-BR) Support and Refactored I18n Architecture
This commit is contained in:
parent
de3bc5fe3a
commit
109738bf67
12 changed files with 1523 additions and 103 deletions
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { type LoadedSettings, SettingScope } from '../config/settings.js';
|
||||
import { performInitialAuth } from './auth.js';
|
||||
import { validateTheme } from './theme.js';
|
||||
import { initializeI18n } from '../i18n/index.js';
|
||||
import { initializeI18n, type SupportedLanguage } from '../i18n/index.js';
|
||||
import { initializeLlmOutputLanguage } from '../utils/languageUtils.js';
|
||||
|
||||
export interface InitializationResult {
|
||||
|
|
@ -38,9 +38,9 @@ export async function initializeApp(
|
|||
// Initialize i18n system
|
||||
const languageSetting =
|
||||
process.env['QWEN_CODE_LANG'] ||
|
||||
settings.merged.general?.language ||
|
||||
(settings.merged.general?.language as string) ||
|
||||
'auto';
|
||||
await initializeI18n(languageSetting);
|
||||
await initializeI18n(languageSetting as SupportedLanguage | 'auto');
|
||||
|
||||
// Auto-detect and set LLM output language on first use
|
||||
initializeLlmOutputLanguage(settings.merged.general?.outputLanguage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue