Skip to content

Commit

Permalink
chore: translation fixes #356
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 18, 2024
1 parent d67adc9 commit fba2ec3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
16 changes: 9 additions & 7 deletions frontend/src/assets/lang/app/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@
"login": {
"success": "You have successfully logged in.",
"error": "An error occurred while logging in."
},
"admin": {
"save": {
"error": {
"title": "Invalid save operation",
"detail": "You are trying to save an item without selecting it"
}
}
}
}
},
Expand Down Expand Up @@ -286,13 +294,7 @@
},
"edit": "Edit",
"cancel": "Cancel",
"save": {
"save": "Save",
"error": {
"title": "Invalid Save Operation",
"detail": "You are trying to save an item without selecting it."
}
},
"save": "Save",
"delete": "Delete",
"users": {
"title": "Users",
Expand Down
16 changes: 9 additions & 7 deletions frontend/src/assets/lang/app/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@
"login": {
"success": "Je bent succesvol ingelogd.",
"error": "Er is een fout opgetreden tijdens het inloggen."
},
"admin": {
"save": {
"error": {
"title": "Ongeldige Opsla Operatie",
"detail": "U probeert een item op te slaan zonder dit te selecteren."
}
}
}
}
},
Expand Down Expand Up @@ -282,13 +290,7 @@
},
"edit": "Bewerken",
"cancel": "Annuleer",
"save": {
"save": "Sla op",
"error": {
"title": "Ongeldige Opsla Operatie",
"detail": "U probeert een item op te slaan zonder dit te selecteren."
}
},
"save": "Sla op",
"delete": "Verwijder",
"users": {
"title": "Gebruikers",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/admin/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const saveItem = async (): Promise<void> => {
// update locally
await dataTable.value.fetch();
} else {
addErrorMessage(t('admin.save.error.title'), t('admin.save.error.detail'));
addErrorMessage(t('toasts.admin.save.error.title'), t('toasts.admin.save.error.detail'));
}
// stop showing popup
popupEdit.value = false;
Expand Down Expand Up @@ -228,7 +228,7 @@ const saveItem = async (): Promise<void> => {
</div>
<div class="flex justify-content-end gap-2">
<Button type="button" :label="t('admin.cancel')" severity="secondary" @click="popupEdit = false"></Button>
<Button type="button" :label="t('admin.save.save')" @click="saveItem"></Button>
<Button type="button" :label="t('admin.save')" @click="saveItem"></Button>
</div>
</Dialog>
</template>
Expand Down

0 comments on commit fba2ec3

Please sign in to comment.