From bfa3a5d0feff8700c74b1393a2de78d8efbd711f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 6 Feb 2020 16:09:03 +0100 Subject: [PATCH] Fix accept languages in tests --- shared/models/i18n/i18n.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts index ff367b279..36688382d 100644 --- a/shared/models/i18n/i18n.ts +++ b/shared/models/i18n/i18n.ts @@ -1,11 +1,13 @@ export const LOCALE_FILES = [ 'player', 'server' ] 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à', 'cs-CZ': 'Čeština', 'de-DE': 'Deutsch', 'el-GR': 'ελληνικά', - 'en-US': 'English', 'eo': 'Esperanto', 'es-ES': 'Español', 'eu-ES': 'Euskara',