From c36a9036a41891b48c4238de1f9873e2f945e283 Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Thu, 7 Sep 2023 14:20:10 +0800 Subject: [PATCH] feat: add i18n (#15) --- frontend/src/Content.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Content.vue b/frontend/src/Content.vue index 49a86d49..50bb0497 100644 --- a/frontend/src/Content.vue +++ b/frontend/src/Content.vue @@ -32,6 +32,7 @@ const { t, locale } = useI18n({ messages: { en: { yourAddress: 'Your email address is', + pleaseGetNewEmail: 'Please click "Get New Email" button to get a new email address', getNewEmail: 'Get New Email', getNewEmailTip1: 'Please input the email you want to use.', getNewEmailTip2: 'Levaing it blank will generate a random email address.', @@ -46,6 +47,7 @@ const { t, locale } = useI18n({ }, zh: { yourAddress: '你的邮箱地址是', + pleaseGetNewEmail: '请点击 "获取新邮箱" 按钮来获取一个新的邮箱地址', getNewEmail: '获取新邮箱', getNewEmailTip1: '请输入你想要使用的邮箱地址。', getNewEmailTip2: '留空将会生成一个随机的邮箱地址。', @@ -214,7 +216,7 @@ onMounted(async () => { - Please click Get New Email button to get a new email address + {{ t('pleaseGetNewEmail') }}