@opengeoweb/webmap-react 9.32.1 → 9.33.0
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/index.esm.js +8 -33
- package/package.json +1 -1
- package/src/lib/utils/i18n.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getPixelCoordFromLatLong, WMJSMAP_LONLAT_EPSGCODE, getLatLongFromPixelCoord, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
2
2
|
export { WEBMAP_NAMESPACE, webmapTranslations } from '@opengeoweb/webmap';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
6
6
|
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, CustomIconButton, dateUtils, PROJECTION } from '@opengeoweb/shared';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import 'i18next';
|
|
8
|
+
import { useTranslation } from 'react-i18next';
|
|
9
9
|
import { Paper, Box, Typography, Grid2, TextField, FormControl, InputLabel, Select, MenuItem, Icon as Icon$1, FormLabel, Switch, styled, Slider } from '@mui/material';
|
|
10
10
|
import { Home, Add, Minus, List, Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Equalizer, DimensionsElevation, Link, LinkOff, Info, DimensionsOther, DimensionsRefTime, DimensionsTime } from '@opengeoweb/theme';
|
|
11
11
|
import { cloneDeep, debounce, isEqual } from 'lodash';
|
|
@@ -71,18 +71,18 @@ var fi = {
|
|
|
71
71
|
"webmap-react-identifier": "Tunniste",
|
|
72
72
|
"webmap-react-no-layers": "Ei karttatasoja",
|
|
73
73
|
"webmap-react-legend": "Selite",
|
|
74
|
-
"webmap-react-title": "
|
|
74
|
+
"webmap-react-title": "Otsikko",
|
|
75
75
|
"webmap-react-name": "Nimi",
|
|
76
76
|
"webmap-react-service": "Palvelu",
|
|
77
77
|
"webmap-react-abstract": "Tiivistelmä",
|
|
78
|
-
"webmap-react-dimensions": "
|
|
78
|
+
"webmap-react-dimensions": "Ulottuvuudet",
|
|
79
79
|
"webmap-react-styles": "Tyylit",
|
|
80
80
|
"webmap-react-bounding-box": "Rajaava-alue",
|
|
81
81
|
"webmap-react-groups": "Ryhmät",
|
|
82
82
|
"webmap-react-keywords": "Avainsanat",
|
|
83
|
-
"webmap-react-zoom-reset": "
|
|
84
|
-
"webmap-react-zoom-in": "
|
|
85
|
-
"webmap-react-zoom-out": "
|
|
83
|
+
"webmap-react-zoom-reset": "Palauta zoomaustaso",
|
|
84
|
+
"webmap-react-zoom-in": "Lähennä",
|
|
85
|
+
"webmap-react-zoom-out": "Loitonna",
|
|
86
86
|
"webmap-react-show": "Näytä",
|
|
87
87
|
"webmap-react-click-disconnect": "Irroita karttataso napsauttamalla",
|
|
88
88
|
"webmap-react-click-connect": "Yhdistä karttataso napsauttamalla",
|
|
@@ -1829,31 +1829,6 @@ $$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
|
|
|
1829
1829
|
});
|
|
1830
1830
|
|
|
1831
1831
|
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1832
|
-
void i18n.use(initReactI18next).init({
|
|
1833
|
-
lng: 'en',
|
|
1834
|
-
ns: WEBMAP_REACT_NAMESPACE,
|
|
1835
|
-
interpolation: {
|
|
1836
|
-
escapeValue: false
|
|
1837
|
-
},
|
|
1838
|
-
resources: {
|
|
1839
|
-
en: {
|
|
1840
|
-
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.en,
|
|
1841
|
-
[WEBMAP_NAMESPACE]: webmapTranslations.en
|
|
1842
|
-
},
|
|
1843
|
-
fi: {
|
|
1844
|
-
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.fi,
|
|
1845
|
-
[WEBMAP_NAMESPACE]: webmapTranslations.fi
|
|
1846
|
-
},
|
|
1847
|
-
no: {
|
|
1848
|
-
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.no,
|
|
1849
|
-
[WEBMAP_NAMESPACE]: webmapTranslations.no
|
|
1850
|
-
},
|
|
1851
|
-
nl: {
|
|
1852
|
-
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.nl,
|
|
1853
|
-
[WEBMAP_NAMESPACE]: webmapTranslations.nl
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
});
|
|
1857
1832
|
const useWebmapReactTranslation = () => useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1858
1833
|
|
|
1859
1834
|
const LegendLayout = ({
|
package/package.json
CHANGED
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
import { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
4
|
+
export declare const initWebmapReactTestI18n: () => void;
|
|
4
5
|
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
5
6
|
export declare const useWebmapReactTranslation: () => UseTranslationResponse<typeof WEBMAP_REACT_NAMESPACE, typeof i18n>;
|
|
6
7
|
export { i18n };
|