fix(console): fallback to default language if browser language not supported (#5999)

fix: fallback to default language if browser language not supported
This commit is contained in:
Max Peintner
2023-06-09 15:14:15 +02:00
committed by GitHub
parent 66e639b5ad
commit dafa8ab4df
3 changed files with 14 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
export const supportedLanguages = ['de', 'en', 'es', 'fr', 'it', 'ja', 'pl', 'zh'];
export const supportedLanguagesRegexp: RegExp = /de|en|es|fr|it|ja|pl|zh/;
export const fallbackLanguage: string = 'en';