@steedos-widgets/amis-lib 6.10.1-beta.41 → 6.10.1-beta.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1829,22 +1829,15 @@ var zh_cn = {
1829
1829
  };
1830
1830
 
1831
1831
  const resources = {
1832
- "en-US": {
1832
+ "en": {
1833
1833
  translation: en_us
1834
1834
  },
1835
1835
  "zh-CN": {
1836
1836
  translation: zh_cn
1837
1837
  }
1838
1838
  };
1839
- var locale = "zh-CN";
1840
- if (typeof window != 'undefined') {
1841
- if (window.Builder?.settings.locale == "en-us") {
1842
- locale = "en-US";
1843
- } else if (window.Builder?.settings.locale == "zh-cn") {
1844
- locale = "zh-CN";
1845
- }
1846
- }
1847
1839
 
1840
+ var locale = window.navigator.language;
1848
1841
 
1849
1842
  i18next
1850
1843
  .use(initReactI18next)