Skip to content

Commit

Permalink
fix mexican spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
csmccarthy committed Oct 24, 2024
1 parent 524f259 commit 484886b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/useLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export const TRANSLATE_LOCALE = {
[LanguageKey.NlNl]: 'nl',
[LanguageKey.NlBe]: 'nl',
[LanguageKey.Es419]: 'es-MX',
// This is a hack to fix the fact that we don't have a LanguageKey -> BrowserLanguageKey mapping
'es-MX': 'es-MX',
[LanguageKey.ZhHk]: 'zh-TW',
[LanguageKey.AfZz]: 'af',
[LanguageKey.Ar]: 'ar',
Expand Down Expand Up @@ -85,7 +87,7 @@ export const TRANSLATE_LOCALE = {
[LanguageKey.SlSl]: 'sl',
[LanguageKey.MrIn]: 'mr',
[LanguageKey.ZuZa]: 'en',
} as { [k in LanguageKey]: string };
} as unknown as { [k in LanguageKey]: string };

/** Mapping of AWS base translation keys to list of browser locales that should use them */
export const INVERTED_TRANSLATE_LOCALE = invertSafe(TRANSLATE_LOCALE);
Expand Down

0 comments on commit 484886b

Please sign in to comment.