@evergis/react 2.0.253 → 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.
@@ -18,6 +18,8 @@ export declare const mergeAttributes: (attributes1: Attribute[], attributes2: At
18
18
  isUnique?: boolean | undefined;
19
19
  isCalculated?: boolean | undefined;
20
20
  stringFormat?: import("@evergis/api").AttributeFormatDefinitionDc | undefined;
21
+ sr?: import("@evergis/api").ISpatialReference | undefined;
22
+ icon?: import("@evergis/api").AttributeIconDc | undefined;
21
23
  } | {
22
24
  name?: string | undefined;
23
25
  type: AttributeType;
@@ -30,6 +32,8 @@ export declare const mergeAttributes: (attributes1: Attribute[], attributes2: At
30
32
  isUnique?: boolean | undefined;
31
33
  isCalculated?: boolean | undefined;
32
34
  stringFormat?: import("@evergis/api").AttributeFormatDefinitionDc | undefined;
35
+ sr?: import("@evergis/api").ISpatialReference | undefined;
36
+ icon?: import("@evergis/api").AttributeIconDc | undefined;
33
37
  } | {
34
38
  name?: string | undefined;
35
39
  type: AttributeType;
@@ -42,6 +46,8 @@ export declare const mergeAttributes: (attributes1: Attribute[], attributes2: At
42
46
  isUnique?: boolean | undefined;
43
47
  isCalculated?: boolean | undefined;
44
48
  stringFormat?: import("@evergis/api").AttributeFormatDefinitionDc | undefined;
49
+ sr?: import("@evergis/api").ISpatialReference | undefined;
50
+ icon?: import("@evergis/api").AttributeIconDc | undefined;
45
51
  value?: string | number | Date | null | undefined;
46
52
  render?: import("react").ReactNode;
47
53
  } | {
@@ -58,4 +64,6 @@ export declare const mergeAttributes: (attributes1: Attribute[], attributes2: At
58
64
  isUnique?: boolean | undefined;
59
65
  isCalculated?: boolean | undefined;
60
66
  stringFormat?: import("@evergis/api").AttributeFormatDefinitionDc | undefined;
67
+ sr?: import("@evergis/api").ISpatialReference | undefined;
68
+ icon?: import("@evergis/api").AttributeIconDc | undefined;
61
69
  })[];
@@ -1,5 +1,5 @@
1
1
  import i18n from "i18next";
2
- export declare const DEFAULT_LANGUAGE = "en";
2
+ export declare const DEFAULT_LANGUAGE = "ru";
3
3
  export declare const resources: {
4
4
  readonly en: {};
5
5
  readonly ru: {};
@@ -18,6 +18,7 @@ var color = require('@evergis/color');
18
18
  var condition = require('@evergis/condition');
19
19
  var i18n = _interopDefault(require('i18next'));
20
20
  var reactI18next = require('react-i18next');
21
+ var LanguageDetector = _interopDefault(require('i18next-browser-languagedetector'));
21
22
  var ImageFill = require('@evergis/sgis/es/symbols/polygon/ImageFill');
22
23
  var Simple = require('@evergis/sgis/es/symbols/polygon/Simple');
23
24
  var PolylineSymbol = require('@evergis/sgis/es/symbols/PolylineSymbol');
@@ -933,12 +934,12 @@ const unClassify = symbol => Object.entries(symbol).reduce((flatSymbol, _ref) =>
933
934
  });
934
935
  }, {});
935
936
 
936
- const DEFAULT_LANGUAGE = "en";
937
+ const DEFAULT_LANGUAGE = "ru";
937
938
  const resources = {
938
939
  en: {},
939
940
  ru: {}
940
941
  };
941
- i18n.use(reactI18next.initReactI18next).init({
942
+ i18n.use(LanguageDetector).use(reactI18next.initReactI18next).init({
942
943
  fallbackLng: DEFAULT_LANGUAGE,
943
944
  ns: Object.keys(resources[DEFAULT_LANGUAGE]),
944
945
  interpolation: {