diff --git a/src/web/map-check/WidgetMapCheck.vue b/src/web/map-check/WidgetMapCheck.vue
index e7591b6c..c263af2c 100644
--- a/src/web/map-check/WidgetMapCheck.vue
+++ b/src/web/map-check/WidgetMapCheck.vue
@@ -4,7 +4,7 @@
{{ mapName }}
- {{ $t('Item under cursor is not a map.') }}
+ {{ t('Item under cursor is not a map.') }}
import { defineComponent, PropType, computed, inject, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
import Widget from '../overlay/Widget.vue'
import { MainProcess } from '@/ipc/main-process-bindings'
import { MAP_CHECK } from '@/ipc/ipc-event'
@@ -40,6 +41,7 @@ export default defineComponent({
},
setup (props) {
const wm = inject('wm')!
+ const { t } = useI18n()
const checkPosition = ref({ x: 1, y: 1 })
const item = ref(null)
@@ -75,7 +77,7 @@ export default defineComponent({
})
const mapName = computed(() => {
if (!item.value) {
- return i18n.global.t('Invalid item')
+ return t('Invalid item')
}
if (item.value.rarity === ItemRarity.Unique) {