mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
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:
parent
25bd170f6b
commit
ec68e6f761
@ -23,5 +23,3 @@ export default {
|
|||||||
])
|
])
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { datetimeFormats } from 'ChillPersonAssets/vuejs/_js/i18n'
|
import { datetimeFormats, personMessages } from 'ChillPersonAssets/vuejs/_js/i18n'
|
||||||
|
|
||||||
// TODO howto merge message object from import ??
|
|
||||||
const messages = {
|
const messages = {
|
||||||
fr: {
|
fr: {
|
||||||
title: {
|
title: {
|
||||||
@ -22,26 +21,12 @@ const messages = {
|
|||||||
startdate: "Date d'entrée",
|
startdate: "Date d'entrée",
|
||||||
enddate: "Date de sortie",
|
enddate: "Date de sortie",
|
||||||
addPerson: "Ajouter un usager",
|
addPerson: "Ajouter un usager",
|
||||||
},
|
|
||||||
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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Object.assign(messages.fr, personMessages.fr);
|
||||||
|
|
||||||
export {
|
export {
|
||||||
datetimeFormats,
|
datetimeFormats,
|
||||||
messages
|
messages
|
||||||
|
@ -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 {
|
export {
|
||||||
datetimeFormats,
|
datetimeFormats,
|
||||||
// messages
|
personMessages
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user