chore: add locales to i18n

This commit is contained in:
Marie 2024-01-02 19:27:24 +01:00
parent 5659ed24f9
commit bdd7583ff5
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
5 changed files with 32 additions and 8 deletions

View File

@ -959,6 +959,10 @@ numberOfPageCache: "Number of cached pages"
numberOfPageCacheDescription: "Increasing this number will improve convenience for but cause more load as more memory usage on the user's device."
numberOfReplies: "Number of replies in a thread"
numberOfRepliesDescription: "Increasing this number will display more replies. Setting this too high can cause replies to be cramped and unreadable."
boostSettings: "Boost Settings"
showVisibilitySelectorOnBoost: "Show Visibility Selector"
showVisibilitySelectorOnBoostDescription: "Shows the visiblity selector if enabled when clicking boost, if disabled it will use the default visiblity defined below and the selector will not show up."
visibilityOnBoost: "Default boost visibility"
logoutConfirm: "Really log out?"
lastActiveDate: "Last used at"
statusbar: "Status bar"
@ -2143,7 +2147,11 @@ _profile:
metadataContent: "Content"
changeAvatar: "Change avatar"
changeBanner: "Change banner"
updateBanner: "Update banner"
removeBanner: "Remove banner"
changeBackground: "Change background"
updateBackground: "Update background"
removeBackground: "Remove background"
verifiedLinkDescription: "By entering an URL that contains a link to your profile here, an ownership verification icon can be displayed next to the field."
avatarDecorationMax: "You can add up to {max} decorations."
_exportOrImport:

8
locales/index.d.ts vendored
View File

@ -962,6 +962,10 @@ export interface Locale {
"numberOfPageCacheDescription": string;
"numberOfReplies": string;
"numberOfRepliesDescription": string;
"boostSettings": string;
"showVisibilitySelectorOnBoost": string;
"showVisibilitySelectorOnBoostDescription": string;
"visibilityOnBoost": string;
"logoutConfirm": string;
"lastActiveDate": string;
"statusbar": string;
@ -2287,7 +2291,11 @@ export interface Locale {
"metadataContent": string;
"changeAvatar": string;
"changeBanner": string;
"updateBanner": string;
"removeBanner": string;
"changeBackground": string;
"updateBackground": string;
"removeBackground": string;
"verifiedLinkDescription": string;
"avatarDecorationMax": string;
};

View File

@ -959,6 +959,10 @@ numberOfPageCache: "ページキャッシュ数"
numberOfPageCacheDescription: "多くすると利便性が向上しますが、負荷とメモリ使用量が増えます。"
numberOfReplies: "スレッド内の返信数"
numberOfRepliesDescription: "この数値を大きくすると、より多くの返信が表示されます。この値を大きくしすぎると、返信が窮屈になり、読めなくなることがあります。"
boostSettings: "ブースト設定"
showVisibilitySelectorOnBoost: "可視性セレクタを表示"
showVisibilitySelectorOnBoostDescription: "無効の場合、以下で定義されるデフォルトの可視性が使用され、セレクタは表示されない。"
visibilityOnBoost: "デフォルトのブースト可視性の設定"
logoutConfirm: "ログアウトしますか?"
lastActiveDate: "最終利用日時"
statusbar: "ステータスバー"
@ -2190,7 +2194,11 @@ _profile:
metadataContent: "内容"
changeAvatar: "アイコン画像を変更"
changeBanner: "バナー画像を変更"
updateBanner: "更新バナー"
removeBanner: "バナーを削除"
changeBackground: "背景を変更する"
updateBackground: "背景を更新する"
removeBackground: "背景を削除する"
verifiedLinkDescription: "内容にURLを設定すると、リンク先のWebサイトに自分のプロフィールへのリンクが含まれている場合に所有者確認済みアイコンを表示させることができます。"
avatarDecorationMax: "最大{max}つまでデコレーションを付けられます。"

View File

@ -191,14 +191,14 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkRange>
<MkFolder>
<template #label>Boost Settings</template>
<template #label>{{ i18n.ts.boostSettings }}</template>
<div class="_gaps_m">
<MkSwitch v-model="showVisibilitySelectorOnBoost">
Disable Visibility Selector
<template #caption>Disables the visiblity selector when clicking boost and uses the default visiblity defined</template>
{{ i18n.ts.showVisibilitySelectorOnBoost }}
<template #caption>{{ i18n.ts.showVisibilitySelectorOnBoostDescription }}</template>
</MkSwitch>
<MkSelect v-model="visibilityOnBoost">
<template #label>Default boost visibility</template>
<template #label>{{ i18n.ts.visibilityOnBoost }}</template>
<option value="public">{{ i18n.ts._visibility['public'] }}</option>
<option value="home">{{ i18n.ts._visibility['home'] }}</option>
<option value="followers">{{ i18n.ts._visibility['followers'] }}</option>

View File

@ -253,7 +253,7 @@ function changeAvatar(ev) {
function changeBanner(ev) {
if ($i.bannerId) {
os.popupMenu([{
text: 'Update Banner',
text: i18n.ts._profile.updateBanner,
action: async () => {
selectFile(ev.currentTarget ?? ev.target, i18n.ts.banner).then(async (file) => {
let originalOrCropped = file;
@ -279,7 +279,7 @@ function changeBanner(ev) {
});
},
}, {
text: 'Remove Banner',
text: i18n.ts._profile.removeBanner,
action: async () => {
const i = await os.apiWithDialog('i/update', {
bannerId: null,
@ -317,7 +317,7 @@ function changeBanner(ev) {
function changeBackground(ev) {
if ($i.backgroundId) {
os.popupMenu([{
text: 'Update Background',
text: i18n.ts._profile.updateBackground,
action: async () => {
selectFile(ev.currentTarget ?? ev.target, i18n.ts.background).then(async (file) => {
let originalOrCropped = file;
@ -343,7 +343,7 @@ function changeBackground(ev) {
});
},
}, {
text: 'Remove Banner',
text: i18n.ts._profile.removeBackground,
action: async () => {
const i = await os.apiWithDialog('i/update', {
backgroundId: null,