瀏覽代碼

fix locale detect error on mobile apps (#5956)

master
Ricardo Santana 5 年之前
父節點
當前提交
93ef8495ca
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存