From: Chocobozzz Date: Thu, 6 Feb 2020 15:09:03 +0000 (+0100) Subject: Fix accept languages in tests X-Git-Tag: v2.2.0-rc.1~526 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfa3a5d0feff8700c74b1393a2de78d8efbd711f;p=oweals%2Fpeertube.git Fix accept languages in tests --- 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',