Make confirm dialogs work with vue-i18n 9

This commit is contained in:
Tusooa Zhu 2022-04-09 23:26:27 -04:00 committed by tusooa
parent 91c4a57fe5
commit ec957d4162
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
3 changed files with 24 additions and 21 deletions

View File

@ -83,15 +83,16 @@
@accepted="doBlockUser" @accepted="doBlockUser"
@cancelled="hideConfirmBlock" @cancelled="hideConfirmBlock"
> >
<i18n <i18n-t
path="user_card.block_confirm" keypath="user_card.block_confirm"
tag="span" tag="span"
> >
<template #user>
<span <span
place="user"
v-text="user.screen_name_ui" v-text="user.screen_name_ui"
/> />
</i18n> </template>
</i18n-t>
</confirm-modal> </confirm-modal>
</teleport> </teleport>
</div> </div>

View File

@ -16,15 +16,16 @@
@accepted="doUnfollow" @accepted="doUnfollow"
@cancelled="hideConfirmUnfollow" @cancelled="hideConfirmUnfollow"
> >
<i18n <i18n-t
path="user_card.unfollow_confirm" keypath="user_card.unfollow_confirm"
tag="span" tag="span"
> >
<template #user>
<span <span
place="user"
v-text="user.screen_name_ui" v-text="user.screen_name_ui"
/> />
</i18n> </template>
</i18n-t>
</confirm-modal> </confirm-modal>
</teleport> </teleport>
</button> </button>

View File

@ -323,15 +323,16 @@
@accepted="doMuteUser" @accepted="doMuteUser"
@cancelled="hideConfirmMute" @cancelled="hideConfirmMute"
> >
<i18n <i18n-t
path="user_card.mute_confirm" keypath="user_card.mute_confirm"
tag="span" tag="span"
> >
<template #user>
<span <span
place="user"
v-text="user.screen_name_ui" v-text="user.screen_name_ui"
/> />
</i18n> </template>
</i18n-t>
</confirm-modal> </confirm-modal>
</teleport> </teleport>
</div> </div>