Browse Source

feat: add new language spanish

Nicolas Meienberger 2 years ago
parent
commit
309ddc77dd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/shared/internationalization/locales.ts

+ 2 - 0
src/shared/internationalization/locales.ts

@@ -1,6 +1,7 @@
 const APP_LOCALES = {
   'de-DE': 'Deutsch',
   'en-US': 'English',
+  'es-ES': 'Español',
   'fr-FR': 'Français',
   'hu-HU': 'Magyar',
   'ja-JP': '日本語',
@@ -18,6 +19,7 @@ type BaseLang<T extends string> = T extends `${infer U}-${string}` ? U : T; // '
 const FALLBACK_LOCALES: { from: BaseLang<keyof typeof APP_LOCALES>; to: keyof typeof APP_LOCALES }[] = [
   { from: 'de', to: 'de-DE' },
   { from: 'en', to: 'en-US' },
+  { from: 'es', to: 'es-ES' },
   { from: 'fr', to: 'fr-FR' },
   { from: 'ja', to: 'ja-JP' },
   { from: 'pl', to: 'pl-PL' },