feat(i18n): Update language handling and remove unused imports for improved performance

This commit is contained in:
wei840222 2025-08-17 22:53:19 +08:00
parent f8896b0f7b
commit 7b30992971
10 changed files with 13 additions and 49 deletions

View file

@ -31,7 +31,7 @@ export const LOCALE_LABELS: Record<AppLocale, string> = {
de: 'Deutsch',
};
// Human-readable language name for prompt prefix
// Human-readable language name for prompt
export function getPromptLanguageName(loc: string): string {
const l = (loc || '').toLowerCase();
const match = (