use i18n.t instead of $t

This commit is contained in:
Norm 2022-08-28 15:38:49 -04:00
parent b66ae3847b
commit 1d380ae344
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -1,8 +1,9 @@
<template>
<MkTime format="date" mode="absolute" :time="birthday" :utc="true"/> ({{ $t('yearsOld', { age }) }})
<MkTime format="date" mode="absolute" :time="birthday" :utc="true"/> ({{ i18n.t('yearsOld', { age }) }})
</template>
<script lang="ts" setup>
import MkTime from '@/components/global/time.vue';
import { i18n } from '@/i18n';
const props = defineProps<{
birthday: Date | string;