commit: ec957d41620fecc5103474f1b07bbb96f5cae446
parent 91c4a57fe50fae8b6e8defe08f09c8a7090bf649
Author: Tusooa Zhu <tusooa@kazv.moe>
Date: Sat, 9 Apr 2022 23:26:27 -0400
Make confirm dialogs work with vue-i18n 9
Diffstat:
3 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue
@@ -83,15 +83,16 @@
@accepted="doBlockUser"
@cancelled="hideConfirmBlock"
>
- <i18n
- path="user_card.block_confirm"
+ <i18n-t
+ keypath="user_card.block_confirm"
tag="span"
>
- <span
- place="user"
- v-text="user.screen_name_ui"
- />
- </i18n>
+ <template #user>
+ <span
+ v-text="user.screen_name_ui"
+ />
+ </template>
+ </i18n-t>
</confirm-modal>
</teleport>
</div>
diff --git a/src/components/follow_button/follow_button.vue b/src/components/follow_button/follow_button.vue
@@ -16,15 +16,16 @@
@accepted="doUnfollow"
@cancelled="hideConfirmUnfollow"
>
- <i18n
- path="user_card.unfollow_confirm"
+ <i18n-t
+ keypath="user_card.unfollow_confirm"
tag="span"
>
- <span
- place="user"
- v-text="user.screen_name_ui"
- />
- </i18n>
+ <template #user>
+ <span
+ v-text="user.screen_name_ui"
+ />
+ </template>
+ </i18n-t>
</confirm-modal>
</teleport>
</button>
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
@@ -323,15 +323,16 @@
@accepted="doMuteUser"
@cancelled="hideConfirmMute"
>
- <i18n
- path="user_card.mute_confirm"
+ <i18n-t
+ keypath="user_card.mute_confirm"
tag="span"
>
- <span
- place="user"
- v-text="user.screen_name_ui"
- />
- </i18n>
+ <template #user>
+ <span
+ v-text="user.screen_name_ui"
+ />
+ </template>
+ </i18n-t>
</confirm-modal>
</teleport>
</div>