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

@ -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,