Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix accept languages in tests

Chocobozzzbfa3a5d0feff
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts
index ff367b2793..36688382df 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',