Skip to content

Commit 6d23db0

Browse files
author
hung.pv
committed
fix: change to setLocaleDefault
1 parent 7884753 commit 6d23db0

5 files changed

Lines changed: 8 additions & 10 deletions

File tree

apps/demo-map/src/views/AllMapView.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import {
5252
LayerControl,
5353
LayerHighlight,
5454
LayerSimpleMapboxBuild,
55-
printTreeFromNode,
5655
useMapDataset,
5756
} from '@hungpvq/vue-map-dataset';
5857
import {
@@ -266,7 +265,6 @@ function onMapLoaded(map: MapSimple) {
266265
dataset.add(groupLayer2);
267266
dataset.add(identify);
268267
dataset.add(metadata);
269-
printTreeFromNode(dataset);
270268
addDataset(dataset);
271269
addDataset(createDatasetPoint());
272270
addDataset(createDatasetLineString());

libs/map/dataset/src/modules/DatasetControl/DatasetControl.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const props = defineProps({
2828
...makeShowProps({ show: false }),
2929
});
3030
const { mapId, moduleContainerProps } = useMap(props);
31-
const { trans, setLocale } = useLang(mapId.value);
32-
setLocale({
31+
const { trans, setLocaleDefault } = useLang(mapId.value);
32+
setLocaleDefault({
3333
map: {
3434
'dataset-control': {
3535
title: 'Dataset Control',

libs/map/dataset/src/modules/IdentifyControl/IdentifyControl.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const props = defineProps({
3636
const { mapId, moduleContainerProps } = useMap(props);
3737
const { getAllComponentsByType, getDatasetIds } = useMapDataset(mapId.value);
3838
const { setFeatureHighlight } = useMapDatasetHighlight(mapId.value);
39-
const { trans, setLocale } = useLang(mapId.value);
39+
const { trans, setLocaleDefault } = useLang(mapId.value);
4040
const { format: formatCoordinate } = useCoordinate(mapId.value);
41-
setLocale({
41+
setLocaleDefault({
4242
map: {
4343
identify: {
4444
title: 'Identify',

libs/map/dataset/src/modules/LayerControl/LayerControl.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ defineSlots<{
3737
default(): any;
3838
}>();
3939
const { mapId, moduleContainerProps } = useMap(props);
40-
const { trans, setLocale } = useLang(mapId.value);
41-
setLocale({
40+
const { trans, setLocaleDefault } = useLang(mapId.value);
41+
setLocaleDefault({
4242
map: {
4343
'layer-control': {
4444
title: 'Layer Control',

libs/map/dataset/src/modules/LayerControl/LayerInfoControl.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const props = defineProps({
3131
...makeShowProps({ show: false }),
3232
});
3333
const { mapId, moduleContainerProps } = useMap(props);
34-
const { trans, setLocale } = useLang(mapId.value);
35-
setLocale({
34+
const { trans, setLocaleDefault } = useLang(mapId.value);
35+
setLocaleDefault({
3636
map: {
3737
'layer-info-control': {
3838
title: 'Layer Info Control',

0 commit comments

Comments
 (0)