mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix translations for AddPersons in PickEntity
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<AddPersons
|
||||
:options="addPersonsOptions"
|
||||
:key="uniqid"
|
||||
buttonTitle="pick_person.add"
|
||||
modalTitle="translatedListOfTypes"
|
||||
:buttonTitle="translatedListOfTypes"
|
||||
:modalTitle="translatedListOfTypes"
|
||||
ref="addPersons"
|
||||
@addNewPersons="addNewEntity"
|
||||
>
|
||||
@@ -21,13 +21,10 @@
|
||||
|
||||
<script>
|
||||
import AddPersons from "ChillPersonAssets/vuejs/_components/AddPersons.vue";
|
||||
import messages from "./i18n";
|
||||
|
||||
console.log('messages', messages);
|
||||
import { appMessages } from "./i18n";
|
||||
|
||||
export default {
|
||||
name: "PickEntity",
|
||||
messages,
|
||||
props: {
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
@@ -69,10 +66,9 @@ export default {
|
||||
translatedListOfTypes() {
|
||||
let trans = [];
|
||||
this.types.forEach(t => {
|
||||
trans.push(this.$t('pick_entity.'.t));
|
||||
trans.push(appMessages.fr.pick_entity[t].toLowerCase());
|
||||
})
|
||||
|
||||
return trans.join(', ');
|
||||
return appMessages.fr.pick_entity.modal_title + trans.join(', ');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user