chore: add locales to i18n
This commit is contained in:
parent
5659ed24f9
commit
bdd7583ff5
5 changed files with 32 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue