Update localization for notifications in English and German

- Added new notification translations for election creation in both `falukant.json` files.
- Updated the message rendering in `MessagesDialog.vue` to include the new translation structure.
This commit is contained in:
Torsten Schulz (local)
2025-12-01 09:32:59 +01:00
parent 672cec9c2a
commit ab1e4bec60
3 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
> >
<ul class="messages"> <ul class="messages">
<li v-for="n in messages" :key="n.id" :class="{ unread: !n.shown }"> <li v-for="n in messages" :key="n.id" :class="{ unread: !n.shown }">
<div class="body">{{ $t(n.tr) }}</div> <div class="body">{{ $t('falukant.notifications.' + n.tr) }}</div>
<div class="footer"> <div class="footer">
<span>{{ formatDate(n.createdAt) }}</span> <span>{{ formatDate(n.createdAt) }}</span>
</div> </div>

View File

@@ -14,6 +14,9 @@
"tooltip": "Nachrichten", "tooltip": "Nachrichten",
"empty": "Keine Nachrichten vorhanden." "empty": "Keine Nachrichten vorhanden."
}, },
"notifications": {
"notify_election_created": "Es wurde eine neue Wahl ausgeschrieben."
},
"health": { "health": {
"amazing": "Super", "amazing": "Super",
"good": "Gut", "good": "Gut",

View File

@@ -5,6 +5,9 @@
"tooltip": "Messages", "tooltip": "Messages",
"empty": "No messages." "empty": "No messages."
}, },
"notifications": {
"notify_election_created": "A new election has been scheduled."
},
"statusbar": { "statusbar": {
"age": "Age", "age": "Age",
"wealth": "Wealth", "wealth": "Wealth",