Improve layout; fix locales

This commit is contained in:
Maximilian Harz 2025-04-07 13:36:29 +02:00
parent 8ec62c1b5c
commit 9a8e9aa142
10 changed files with 109 additions and 15 deletions

View File

@ -1039,16 +1039,21 @@
},
"name": "Einstellungen",
"notifications": {
"checkAll": "Alle auswählen",
"commentOnObservedPost": "Kommentare zu beobachteten Beiträgen",
"group": "Gruppen",
"groupMemberJoined": "Ein Mitglied ist deiner Gruppe beigetreten",
"groupMemberLeft": "Ein Mitglied hat deine Gruppe verlassen",
"groupMemberRemoved": "Du wurdest aus einer Gruppe entfernt",
"groupMemberRoleChanged": "Deine Rolle in einer Gruppe wurde geändert",
"mention": "Ich wurde in einem Kommentar erwähnt",
"name": "Benachrichtigungen",
"post": "Beiträge",
"postByFollowedUser": "Beitrag von einem Nutzer, dem ich folge",
"postInGroup": "Beitrag in einer Gruppe, die ich beobachte",
"send-email-notifications": "Sende E-Mail-Benachrichtigungen",
"success-update": "Benachrichtigungs-Einstellungen gespeichert!"
"success-update": "Benachrichtigungs-Einstellungen gespeichert!",
"uncheckAll": "Alle abwählen"
},
"organizations": {
"name": "Meine Organisationen"

View File

@ -1039,16 +1039,21 @@
},
"name": "Settings",
"notifications": {
"checkAll": "Check all",
"commentOnObservedPost": "Comments on observed posts",
"group": "Groups",
"groupMemberJoined": "Member joined a group I own",
"groupMemberLeft": "Member left a group I own",
"groupMemberRemoved": "I was removed from a group",
"groupMemberRoleChanged": "My role in a group was changed",
"mention": "I was mentioned in a post",
"name": "Notifications",
"post": "Posts",
"postByFollowedUser": "Posts by users I follow",
"postInGroup": "Post in a group I am a member of",
"send-email-notifications": "Send e-mail notifications",
"success-update": "Notifications settings saved!"
"success-update": "Notifications settings saved!",
"uncheckAll": "Uncheck all"
},
"organizations": {
"name": "My Organizations"

View File

@ -1039,9 +1039,21 @@
},
"name": "Configuración",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Mis organizaciones"

View File

@ -1039,9 +1039,21 @@
},
"name": "Paramètres",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Mes organisations"

View File

@ -1039,9 +1039,21 @@
},
"name": "Impostazioni",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Mie organizzazioni"

View File

@ -1039,9 +1039,21 @@
},
"name": "Instellingen",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Mijn Organisaties"

View File

@ -1039,9 +1039,21 @@
},
"name": "Ustawienia",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "My Organizations"

View File

@ -1039,9 +1039,21 @@
},
"name": "Configurações",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Minhas Organizações"

View File

@ -1039,9 +1039,21 @@
},
"name": "Настройки",
"notifications": {
"checkAll": null,
"commentOnObservedPost": null,
"group": null,
"groupMemberJoined": null,
"groupMemberLeft": null,
"groupMemberRemoved": null,
"groupMemberRoleChanged": null,
"mention": null,
"name": null,
"post": null,
"postByFollowedUser": null,
"postInGroup": null,
"send-email-notifications": null,
"success-update": null
"success-update": null,
"uncheckAll": null
},
"organizations": {
"name": "Мои организации"

View File

@ -1,18 +1,18 @@
<template>
<base-card>
<h2 class="title">{{ $t('settings.notifications.name') }}</h2>
<div v-for="topic in emailNotificationSettings" :key="topic.type">
<ds-space margin-bottom="small" v-for="topic in emailNotificationSettings" :key="topic.type">
<h3>{{ $t(`settings.notifications.${topic.type}`) }}</h3>
<ds-space margin-bottom="small" v-for="setting in topic.settings" :key="setting.name" >
<div v-for="setting in topic.settings" :key="setting.name" >
<input :id="setting.name" type="checkbox" v-model="setting.value" />
<label :for="setting.name">{{ $t(`settings.notifications.${setting.name}`) }}</label>
</ds-space>
</div>
</div>
</ds-space>
<base-button @click="activateAll">
{{ $t('settings.notifications.activateAll') }}
{{ $t('settings.notifications.checkAll') }}
</base-button>
<base-button @click="deactivateAll">
{{ $t('settings.notifications.deactivateAll') }}
{{ $t('settings.notifications.uncheckAll') }}
</base-button>
<base-button class="save-button" filled @click="submit" :disabled="disabled">
{{ $t('actions.save') }}