chore(i18n): drop unshipped locales (de, zh)

AVAILABLE_LOCALES advertised 'de' and 'zh' but src/i18n/locales/
only ships en.ts, es.ts, fr.ts. Selecting de or zh from the new
hub language picker would 404 the dynamic import.

- src/i18n/index.ts: AVAILABLE_LOCALES = ['en', 'es', 'fr']
- src/composables/useLocale.ts: trim flag map to match

VITE_DEFAULT_LOCALE still drives first-run default.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-05-02 10:08:50 +02:00
commit d8468aba56
2 changed files with 2 additions and 4 deletions

View file

@ -27,9 +27,7 @@ export function useLocale() {
const flagMap: Record<string, string> = { const flagMap: Record<string, string> = {
'en': '🇬🇧', 'en': '🇬🇧',
'es': '🇪🇸', 'es': '🇪🇸',
'fr': '🇫🇷', 'fr': '🇫🇷'
'de': '🇩🇪',
'zh': '🇨🇳'
} }
return flagMap[locale] || '🌐' return flagMap[locale] || '🌐'
} }

View file

@ -5,7 +5,7 @@ import { useStorage } from '@vueuse/core'
import en from './locales/en' import en from './locales/en'
// Define available locales // Define available locales
export const AVAILABLE_LOCALES = ['en', 'es', 'fr', 'de', 'zh'] as const export const AVAILABLE_LOCALES = ['en', 'es', 'fr'] as const
export type AvailableLocale = typeof AVAILABLE_LOCALES[number] export type AvailableLocale = typeof AVAILABLE_LOCALES[number]
// Type for our messages // Type for our messages