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:
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user