make inheritance for vue translations i18n.js files

By importing only the app i18n file,
we benefit from the whole inherited chain:

app i18n < chill bundle i18n < chill main bundle i18n
This commit is contained in:
2021-04-29 17:14:13 +02:00
parent 25bd170f6b
commit ec68e6f761
3 changed files with 24 additions and 22 deletions

View File

@@ -16,9 +16,28 @@ const datetimeFormats = {
}
}
};
// const messages = {} ...
const personMessages = {
fr: {
action: {
actions: "Actions",
show: "Voir",
edit: "Modifier",
create: "Créer",
remove: "Enlever",
delete: "Supprimer",
save: "Enregistrer",
showModal: "Ouvrir une modale",
ok: "OK",
cancel: "Annuler",
close: "Fermer",
next: "Suivant",
previous: "Précédent",
back: "Retour"
}
}
}
export {
datetimeFormats,
// messages
personMessages
};