chore: add locales for defaultLike

This commit is contained in:
Insert5StarName 2023-11-30 13:25:35 +01:00
parent 13550bac35
commit 97bd4e6f82
5 changed files with 14 additions and 3 deletions

View file

@ -987,6 +987,7 @@ cannotLoad: "Unable to load"
numberOfProfileView: "Profile views" numberOfProfileView: "Profile views"
like: "Like" like: "Like"
unlike: "Unlike" unlike: "Unlike"
defaultLike: "Default like emoji"
numberOfLikes: "Likes" numberOfLikes: "Likes"
show: "Show" show: "Show"
neverShow: "Don't show again" neverShow: "Don't show again"
@ -1855,6 +1856,14 @@ _ago:
monthsAgo: "{n}mo ago" monthsAgo: "{n}mo ago"
yearsAgo: "{n}y ago" yearsAgo: "{n}y ago"
invalid: "None" invalid: "None"
_timeIn:
seconds: "{n} seconds later"
minutes: "{n} minutes later"
hours: "{n} hours later"
days: "{n} days later"
weeks: "{n} weeks later"
months: "{n} months later"
years: "{n} years later"
_time: _time:
second: "Second(s)" second: "Second(s)"
minute: "Minute(s)" minute: "Minute(s)"

1
locales/index.d.ts vendored
View file

@ -990,6 +990,7 @@ export interface Locale {
"numberOfProfileView": string; "numberOfProfileView": string;
"like": string; "like": string;
"unlike": string; "unlike": string;
"defaultLike": string;
"numberOfLikes": string; "numberOfLikes": string;
"show": string; "show": string;
"neverShow": string; "neverShow": string;

View file

@ -987,6 +987,7 @@ cannotLoad: "読み込めません"
numberOfProfileView: "プロフィール表示回数" numberOfProfileView: "プロフィール表示回数"
like: "いいね!" like: "いいね!"
unlike: "いいねを解除" unlike: "いいねを解除"
defaultLike: "絵文字のようなデフォルト"
numberOfLikes: "いいね数" numberOfLikes: "いいね数"
show: "表示" show: "表示"
neverShow: "今後表示しない" neverShow: "今後表示しない"

View file

@ -48,7 +48,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkInput> </MkInput>
<FromSlot> <FromSlot>
<template #label>Default like emoji</template> <template #label>{{ i18n.ts.defaultLike }}</template>
<MkCustomEmoji v-if="defaultLike.startsWith(':')" style="max-height: 3em; font-size: 1.1em;" :useOriginalSize="false" :class="$style.reaction" :name="defaultLike" :normal="true" :noStyle="true"/> <MkCustomEmoji v-if="defaultLike.startsWith(':')" style="max-height: 3em; font-size: 1.1em;" :useOriginalSize="false" :class="$style.reaction" :name="defaultLike" :normal="true" :noStyle="true"/>
<MkEmoji v-else :emoji="defaultLike" style="max-height: 3em; font-size: 1.1em;" :normal="true" :noStyle="true"/> <MkEmoji v-else :emoji="defaultLike" style="max-height: 3em; font-size: 1.1em;" :normal="true" :noStyle="true"/>
<MkButton rounded :small="true" @click="chooseNewLike"><i class="ph-smiley ph-bold ph-lg"></i> Change</MkButton> <MkButton rounded :small="true" @click="chooseNewLike"><i class="ph-smiley ph-bold ph-lg"></i> Change</MkButton>

View file

@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</FromSlot> </FromSlot>
<FromSlot> <FromSlot>
<template #label>Default like emoji</template> <template #label>{{ i18n.ts.defaultLike }}</template>
<MkCustomEmoji v-if="like && like.startsWith(':')" style="max-height: 3em; font-size: 1.1em;" :useOriginalSize="false" :class="$style.reaction" :name="like" :normal="true" :noStyle="true"/> <MkCustomEmoji v-if="like && like.startsWith(':')" style="max-height: 3em; font-size: 1.1em;" :useOriginalSize="false" :class="$style.reaction" :name="like" :normal="true" :noStyle="true"/>
<MkEmoji v-else-if="like && !like.startsWith(':')" :emoji="like" style="max-height: 3em; font-size: 1.1em;" :normal="true" :noStyle="true"/> <MkEmoji v-else-if="like && !like.startsWith(':')" :emoji="like" style="max-height: 3em; font-size: 1.1em;" :normal="true" :noStyle="true"/>
<span v-else-if="!like">{{ i18n.ts.notSet }}</span> <span v-else-if="!like">{{ i18n.ts.notSet }}</span>