Kaynağa Gözat

fix(lang) fix default language selection

[0] introduced sorted language keys, but we had the assumption that the
first one meant to indicate the default language.

Break that assumption and be explicit about English being the default
language.

[0]: 7fe319d965
master
Saúl Ibarra Corretgé 3 yıl önce
ebeveyn
işleme
bd38df5d61
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  1. 2
    4
      react/features/base/i18n/i18next.js

+ 2
- 4
react/features/base/i18n/i18next.js Dosyayı Görüntüle

15
 /**
15
 /**
16
  * The available/supported languages.
16
  * The available/supported languages.
17
  *
17
  *
18
- * XXX The element at index zero is the default language.
19
- *
20
  * @public
18
  * @public
21
  * @type {Array<string>}
19
  * @type {Array<string>}
22
  */
20
  */
25
 /**
23
 /**
26
  * The default language.
24
  * The default language.
27
  *
25
  *
28
- * XXX The element at index zero of {@link LANGUAGES} is the default language.
26
+ * English is the default language.
29
  *
27
  *
30
  * @public
28
  * @public
31
  * @type {string} The default language.
29
  * @type {string} The default language.
32
  */
30
  */
33
-export const DEFAULT_LANGUAGE = LANGUAGES[0];
31
+export const DEFAULT_LANGUAGE = 'en';
34
 
32
 
35
 /**
33
 /**
36
  * The options to initialize i18next with.
34
  * The options to initialize i18next with.

Loading…
İptal
Kaydet