diff --git a/l10n/de.json b/l10n/de.json new file mode 100644 index 0000000..bfd8512 --- /dev/null +++ b/l10n/de.json @@ -0,0 +1,84 @@ +{ + "account": { + "address": "Adresse", + "addressPlaceholder": "Musterstraße 123", + "city": "Stadt", + "cityPlaceholder": "Berlin", + "countries": { + "australia": "Australien", + "brazil": "Brasilien", + "canada": "Kanada", + "china": "China", + "france": "Frankreich", + "germany": "Deutschland", + "india": "Indien", + "japan": "Japan", + "mexico": "Mexiko", + "southAfrica": "Südafrika", + "unitedKingdom": "Vereinigtes Königreich", + "unitedStates": "Vereinigte Staaten" + }, + "country": "Land", + "email": "E-Mail", + "firstName": "Vorname", + "firstNamePlaceholder": "Max", + "lastName": "Nachname", + "lastNamePlaceholder": "Mustermann", + "managedFieldHint": "Wird vom Authentifizierungsanbieter verwaltet", + "phoneNumber": "Telefonnummer", + "photoRequirements": "Zulässig sind JPG, GIF oder PNG. Maximale Größe: 800 KB", + "selectCountry": "Land auswählen", + "stateOrProvince": "Bundesland/Provinz", + "statePlaceholder": "Bundesland", + "title": "Kontodetails", + "uploadPhoto": "Neues Foto hochladen", + "zipCode": "Postleitzahl" + }, + "actions": { + "reset": "Zurücksetzen", + "saveChanges": "Änderungen speichern" + }, + "nav": { + "preferences": "Einstellungen", + "profile": "Profil", + "profileSettings": "Profil & Einstellungen", + "security": "Sicherheit" + }, + "notifications": { + "columns": { + "app": "App", + "browser": "BROWSER", + "email": "E-MAIL", + "type": "Typ" + }, + "permissionDescription": "Wir benötigen die Berechtigung Ihres Browsers, um Benachrichtigungen anzuzeigen.", + "requestPermission": "Berechtigung anfordern", + "timing": { + "anytime": "Jederzeit", + "online": "Nur wenn ich online bin" + }, + "timingQuestion": "Wann sollen wir Ihnen Benachrichtigungen senden?", + "title": "Benachrichtigungen", + "types": { + "accountActivity": "Kontoaktivität", + "newBrowserSignIn": "Anmeldung über einen neuen Browser", + "newDeviceLinked": "Ein neues Gerät wurde verknüpft", + "newForYou": "Neu für Sie" + } + }, + "preferences": { + "languageHint": "Wird sofort angewendet und in Ihrem Konto gespeichert", + "languageLabel": "Anzeigesprache", + "languageTitle": "Sprache" + }, + "security": { + "emptyDescription": "Derzeit sind keine Sicherheitsmodule aktiviert oder installiert.", + "emptyTitle": "Keine Sicherheitseinstellungen verfügbar" + }, + "tabs": { + "account": "Konto", + "notifications": "Benachrichtigungen", + "preferences": "Einstellungen", + "security": "Sicherheit" + } +} diff --git a/l10n/en.json b/l10n/en.json new file mode 100644 index 0000000..d1f6484 --- /dev/null +++ b/l10n/en.json @@ -0,0 +1,84 @@ +{ + "account": { + "address": "Address", + "addressPlaceholder": "123 Main St", + "city": "City", + "cityPlaceholder": "New York", + "countries": { + "australia": "Australia", + "brazil": "Brazil", + "canada": "Canada", + "china": "China", + "france": "France", + "germany": "Germany", + "india": "India", + "japan": "Japan", + "mexico": "Mexico", + "southAfrica": "South Africa", + "unitedKingdom": "United Kingdom", + "unitedStates": "United States" + }, + "country": "Country", + "email": "E-mail", + "firstName": "First Name", + "firstNamePlaceholder": "John", + "lastName": "Last Name", + "lastNamePlaceholder": "Doe", + "managedFieldHint": "Managed by authentication provider", + "phoneNumber": "Phone Number", + "photoRequirements": "Allowed JPG, GIF or PNG. Max size of 800K", + "selectCountry": "Select Country", + "stateOrProvince": "State/Province", + "statePlaceholder": "State", + "title": "Account Details", + "uploadPhoto": "Upload new photo", + "zipCode": "Zip Code" + }, + "actions": { + "reset": "Reset", + "saveChanges": "Save changes" + }, + "nav": { + "preferences": "Preferences", + "profile": "Profile", + "profileSettings": "Profile & Settings", + "security": "Security" + }, + "notifications": { + "columns": { + "app": "App", + "browser": "BROWSER", + "email": "EMAIL", + "type": "Type" + }, + "permissionDescription": "We need permission from your browser to show notifications.", + "requestPermission": "Request Permission", + "timing": { + "anytime": "Anytime", + "online": "Only when I'm online" + }, + "timingQuestion": "When should we send you notifications?", + "title": "Notifications", + "types": { + "accountActivity": "Account activity", + "newBrowserSignIn": "A new browser used to sign in", + "newDeviceLinked": "A new device is linked", + "newForYou": "New for you" + } + }, + "preferences": { + "languageHint": "Applies immediately and is saved to your account", + "languageLabel": "Display language", + "languageTitle": "Language" + }, + "security": { + "emptyDescription": "No security modules are currently enabled or installed.", + "emptyTitle": "No Security Settings Available" + }, + "tabs": { + "account": "Account", + "notifications": "Notifications", + "preferences": "Preferences", + "security": "Security" + } +} diff --git a/l10n/en.manual.json b/l10n/en.manual.json new file mode 100644 index 0000000..7eb0827 --- /dev/null +++ b/l10n/en.manual.json @@ -0,0 +1,8 @@ +{ + "nav": { + "preferences": "Preferences", + "profile": "Profile", + "profileSettings": "Profile & Settings", + "security": "Security" + } +} diff --git a/src/components/ProfileAccount.vue b/src/components/ProfileAccount.vue index b3d8502..9f7eb55 100644 --- a/src/components/ProfileAccount.vue +++ b/src/components/ProfileAccount.vue @@ -2,8 +2,10 @@ import { ref, computed, onMounted } from 'vue' import { useUserStore } from '@KTXC/stores/userStore' import { userService } from '@KTXC/services/user/userService' +import { useL10n } from '@KTXC' const userStore = useUserStore() +const { t } = useL10n('user_profile') const refInputEl = ref() const isSaving = ref(false) @@ -134,27 +136,27 @@ const resetAvatar = () => { } } -const countries = [ - 'United States', - 'United Kingdom', - 'Canada', - 'Australia', - 'Germany', - 'France', - 'India', - 'China', - 'Japan', - 'Brazil', - 'Mexico', - 'South Africa', -] +const countries = computed(() => [ + { value: 'United States', title: t('account.countries.unitedStates', 'United States') }, + { value: 'United Kingdom', title: t('account.countries.unitedKingdom', 'United Kingdom') }, + { value: 'Canada', title: t('account.countries.canada', 'Canada') }, + { value: 'Australia', title: t('account.countries.australia', 'Australia') }, + { value: 'Germany', title: t('account.countries.germany', 'Germany') }, + { value: 'France', title: t('account.countries.france', 'France') }, + { value: 'India', title: t('account.countries.india', 'India') }, + { value: 'China', title: t('account.countries.china', 'China') }, + { value: 'Japan', title: t('account.countries.japan', 'Japan') }, + { value: 'Brazil', title: t('account.countries.brazil', 'Brazil') }, + { value: 'Mexico', title: t('account.countries.mexico', 'Mexico') }, + { value: 'South Africa', title: t('account.countries.southAfrica', 'South Africa') }, +])