Localize toolbar button titles using localized object

Updated toolbar button titles to reference properties from the `localized` object instead of hardcoded strings. This enhances internationalization support by allowing button labels to adapt to different languages. Buttons affected include "Share", "Logout", "Copy Link", "Reject", and "Reset".
This commit is contained in:
2026-02-16 17:34:33 +01:00
parent dc6a2027d6
commit 7345b8f877
2 changed files with 10 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ function getWritableItems(callback) {
type: 'custom',
id: 'button-share',
className: 'button-share',
title: 'Teilen',
title: localized.share,
onPress() {
callback('SHARE')
},
@@ -103,7 +103,7 @@ function getWritableItems(callback) {
type: 'custom',
id: 'button-logout',
className: 'button-logout',
title: 'logout',
title: localized.logout,
onPress() {
callback('LOGOUT')
},
@@ -128,7 +128,7 @@ function getReadOnlyItems(callback) {
type: 'custom',
id: 'button-copy-url',
className: 'button-copy-url',
title: 'Teilen',
title: localized.copyLink,
onPress() {
callback('COPY_URL')
},
@@ -158,7 +158,7 @@ function getMobileWritableItems(callback) {
type: 'custom',
id: 'button-reject',
className: 'button-reject',
title: 'Ablehnen',
title: localized.reject,
onPress() {
callback('REJECT')
},
@@ -173,7 +173,7 @@ function getMobileWritableItems(callback) {
type: 'custom',
id: 'button-reset',
className: 'button-reset',
title: 'Zurücksetzen',
title: localized.reset,
onPress() {
callback('RESET')
},