@@ -41,12 +41,15 @@ import {
4141 watch ,
4242} from ' vue'
4343
44- import type { MapConfiguration , MasterportalApiServiceRegister } from ' ../types'
45-
4644import { useT } from ' ../composables/useT'
4745import { useCoreStore } from ' ../stores'
4846import { useMainStore } from ' ../stores/main'
4947import { useMoveHandleStore } from ' ../stores/moveHandle'
48+ import {
49+ CoreId ,
50+ type MapConfiguration ,
51+ type MasterportalApiServiceRegister ,
52+ } from ' ../types'
5053import { loadKern } from ' ../utils/loadKern'
5154import { teardownMarkers } from ' ../utils/map/setupMarkers'
5255import { mapZoomOffset } from ' ../utils/mapZoomOffset'
@@ -76,10 +79,10 @@ const overlay =
7679
7780const isMacOS = navigator .userAgent .indexOf (' Mac' ) !== - 1
7881const noCommandOnZoom = useT (() =>
79- t (($ ) => $ .overlay .noCommandOnZoom , { ns: ' core ' })
82+ t (($ ) => $ .overlay .noCommandOnZoom , { ns: CoreId })
8083)
8184const noControlOnZoom = useT (() =>
82- t (($ ) => $ .overlay .noControlOnZoom , { ns: ' core ' })
85+ t (($ ) => $ .overlay .noControlOnZoom , { ns: CoreId })
8386)
8487
8588function wheelEffect(event : WheelEvent ) {
@@ -95,7 +98,7 @@ function wheelEffect(event: WheelEvent) {
9598}
9699
97100const oneFingerPan = useT (() =>
98- t (($ ) => $ .overlay .oneFingerPan , { ns: ' core ' })
101+ t (($ ) => $ .overlay .oneFingerPan , { ns: CoreId })
99102)
100103let hammer: { destroy: () => void } | null = null
101104function updateListeners() {
0 commit comments