Use composition for translation
This commit is contained in:
@@ -3,7 +3,7 @@ import type { Team } from '~/pages/hunt/[huntSlug]/teams.vue';
|
||||
|
||||
const { confirm } = useModal();
|
||||
const { init } = useToast();
|
||||
const { t } = useI18n();
|
||||
const { t, d } = useI18n();
|
||||
|
||||
const props = defineProps<{
|
||||
team: Team;
|
||||
@@ -163,7 +163,7 @@ async function deleteTeam() {
|
||||
<p>
|
||||
Created at:
|
||||
{{
|
||||
$d(team.createdAt, {
|
||||
d(team.createdAt, {
|
||||
dateStyle: 'medium',
|
||||
timeStyle: 'medium'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user