Fix accept languages in tests

pull/2472/head
Chocobozzz 2020-02-06 16:09:03 +01:00
parent 28c801b6d0
commit bfa3a5d0fe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -1,11 +1,13 @@
export const LOCALE_FILES = [ 'player', 'server' ] export const LOCALE_FILES = [ 'player', 'server' ]
export const I18N_LOCALES = { export const I18N_LOCALES = {
// Always first to avoid issues when using express acceptLanguages function when no accept language header is set
'en-US': 'English',
'ca-ES': 'Català', 'ca-ES': 'Català',
'cs-CZ': 'Čeština', 'cs-CZ': 'Čeština',
'de-DE': 'Deutsch', 'de-DE': 'Deutsch',
'el-GR': 'ελληνικά', 'el-GR': 'ελληνικά',
'en-US': 'English',
'eo': 'Esperanto', 'eo': 'Esperanto',
'es-ES': 'Español', 'es-ES': 'Español',
'eu-ES': 'Euskara', 'eu-ES': 'Euskara',