Преглед изворни кода

fix locale detect error on mobile apps (#5956)

master
Ricardo Santana пре 5 година
родитељ
комит
93ef8495ca
No account linked to committer's email address
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      react/features/base/i18n/languageDetector.native.js

+ 1
- 1
react/features/base/i18n/languageDetector.native.js Прегледај датотеку

@@ -17,7 +17,7 @@ export default {
17 17
     detect() {
18 18
         const { LocaleDetector } = NativeModules;
19 19
 
20
-        return LocaleDetector.locale.replace(/_/, '-');
20
+        return LocaleDetector.locale.replace(/[_-]/, '');
21 21
     },
22 22
 
23 23
     init: Function.prototype,

Loading…
Откажи
Сачувај