From ccbaea7a73cdcd2d7fcf58072fa54cdf8e04a372 Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Wed, 13 Jan 2021 17:38:10 +0200 Subject: [PATCH] fix --- src/web/map-check/WidgetMapCheck.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {