i18n: various i18n additions & fixes (#719)
This commit is contained in:
parent
8a3cfcd089
commit
029440421d
5 changed files with 76 additions and 11 deletions
|
@ -193,7 +193,7 @@ const languageList: {
|
|||
name?: string
|
||||
}[] = [{
|
||||
code: null,
|
||||
nativeName: 'None',
|
||||
nativeName: t('language.none'),
|
||||
}, ...ISO6391.getAllCodes().map(code => ({
|
||||
code,
|
||||
nativeName: ISO6391.getNativeName(code),
|
||||
|
@ -363,7 +363,7 @@ defineExpose({
|
|||
<div min-w-80 p3>
|
||||
<input
|
||||
v-model="languageKeyword"
|
||||
placeholder="Search"
|
||||
:placeholder="t('language.search')"
|
||||
p2 mb2 border-rounded w-full bg-transparent
|
||||
outline-none border="~ base"
|
||||
>
|
||||
|
|
|
@ -25,10 +25,10 @@ const toggleFollowTag = async () => {
|
|||
<button
|
||||
rounded group focus:outline-none
|
||||
hover:text-primary focus-visible:text-primary
|
||||
:aria-label="tag.following ? `Unfollow ${tag.name} tag` : `Follow ${tag.name} tag`"
|
||||
:aria-label="tag.following ? $t('tag.unfollow_label', [tag.name]) : $t('tag.follow_label', [tag.name])"
|
||||
@click="toggleFollowTag()"
|
||||
>
|
||||
<CommonTooltip placement="bottom" :content="tag.following ? 'Unfollow' : 'Follow'">
|
||||
<CommonTooltip placement="bottom" :content="tag.following ? $t('tag.unfollow') : $t('tag.follow')">
|
||||
<div rounded-full p2 group-hover="bg-orange/10" group-focus-visible="bg-orange/10" group-focus-visible:ring="2 current">
|
||||
<div :class="[tag.following ? 'i-ri:star-fill' : 'i-ri:star-line']" />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue