forked from FoundKeyGang/FoundKey
use i18n.t instead of $t
This commit is contained in:
parent
b66ae3847b
commit
1d380ae344
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import MkTime from '@/components/global/time.vue';
|
import MkTime from '@/components/global/time.vue';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
birthday: Date | string;
|
birthday: Date | string;
|
||||||
|
|
Loading…
Reference in a new issue