@evergis/react 2.0.254 → 2.0.255
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/core/attributes/utils.d.ts +8 -0
- package/dist/i18n/index.d.ts +1 -1
- package/dist/react.cjs.development.js +3 -2
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +3 -2
- package/dist/react.esm.js.map +1 -1
- package/package.json +6 -5
package/dist/react.esm.js
CHANGED
|
@@ -11,6 +11,7 @@ import { Color } from '@evergis/color';
|
|
|
11
11
|
import { ConditionInterpreter, TokenType, ConditionEvaluator, Char } from '@evergis/condition';
|
|
12
12
|
import i18n from 'i18next';
|
|
13
13
|
import { initReactI18next, useTranslation } from 'react-i18next';
|
|
14
|
+
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
14
15
|
import { ImageFill } from '@evergis/sgis/es/symbols/polygon/ImageFill';
|
|
15
16
|
import { PolygonSymbol } from '@evergis/sgis/es/symbols/polygon/Simple';
|
|
16
17
|
import { PolylineSymbol } from '@evergis/sgis/es/symbols/PolylineSymbol';
|
|
@@ -925,12 +926,12 @@ const unClassify = symbol => Object.entries(symbol).reduce((flatSymbol, _ref) =>
|
|
|
925
926
|
});
|
|
926
927
|
}, {});
|
|
927
928
|
|
|
928
|
-
const DEFAULT_LANGUAGE = "
|
|
929
|
+
const DEFAULT_LANGUAGE = "ru";
|
|
929
930
|
const resources = {
|
|
930
931
|
en: {},
|
|
931
932
|
ru: {}
|
|
932
933
|
};
|
|
933
|
-
i18n.use(initReactI18next).init({
|
|
934
|
+
i18n.use(LanguageDetector).use(initReactI18next).init({
|
|
934
935
|
fallbackLng: DEFAULT_LANGUAGE,
|
|
935
936
|
ns: Object.keys(resources[DEFAULT_LANGUAGE]),
|
|
936
937
|
interpolation: {
|