feat(i18n): improve translations (#219)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: 沈青川 <46062972+ShenQingchuan@users.noreply.github.com>
This commit is contained in:
Alex 2022-11-29 18:55:28 +08:00 committed by GitHub
parent 8df22b8a3f
commit 09f80f291b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 103 additions and 44 deletions

View file

@ -12,7 +12,7 @@ const { notification } = defineProps<{
<div flex ml-4 items-center>
<div i-ri:user-follow-fill mr-3 color-primary />
<AccountInlineInfo :account="notification.account" mr1 />
followed you
{{ $t('notification.followed_you') }}
</div>
<AccountCard :account="notification.account" p3 />
</template>
@ -20,7 +20,7 @@ const { notification } = defineProps<{
<div flex ml-4 items-center>
<div i-ri:user-follow-fill mr-3 />
<AccountInlineInfo :account="notification.account" mr1 />
requested to follow you
{{ $t('notification.request_to_follow') }}
</div>
<!-- TODO: accept request -->
<AccountCard :account="notification.account" p3 />
@ -29,7 +29,7 @@ const { notification } = defineProps<{
<div flex ml-4 items-center>
<div i-ri:heart-fill mr-3 color-red />
<AccountInlineInfo :account="notification.account" mr1 />
favourited your post
{{ $t('notification.favourited_post') }}
</div>
<StatusCard :status="notification.status!" p3 />
</template>
@ -37,7 +37,7 @@ const { notification } = defineProps<{
<div flex ml-4 items-center>
<div i-ri:repeat-fill mr-3 color-green />
<AccountInlineInfo :account="notification.account" mr1 />
reblogged your post
{{ $t('notification.reblogged_post') }}
</div>
<StatusCard :status="notification.status!" p3 />
</template>
@ -45,7 +45,7 @@ const { notification } = defineProps<{
<div flex ml-4 items-center>
<div i-ri:edit-2-fill mr-3 text-secondary />
<AccountInlineInfo :account="notification.account" mr1 />
updated their status
{{ $t('notification.update_status') }}
</div>
<StatusCard :status="notification.status!" p3 />
</template>
@ -54,7 +54,7 @@ const { notification } = defineProps<{
</template>
<template v-else>
<div text-red font-bold>
[DEV] MISSING notification.type: '{{ notification.type }}'
[DEV] {{ $t('notification.missing_type') }} '{{ notification.type }}'
</div>
</template>
</article>