Merge branch '379-translation-localization-vue' into 'master'

Resolve "Finish handling of internationalization in vuejs: handling translation of "translatable string""

Closes #379

See merge request Chill-Projet/chill-bundles!822
This commit is contained in:
2025-05-28 14:40:27 +00:00
22 changed files with 118 additions and 464 deletions

View File

@@ -68,7 +68,7 @@
<!-- results which **are** attached to an objective -->
<div v-for="g in goalsPicked" :key="g.goal.id">
<div class="item-title" @click="removeGoal(g)">
<span class="removable">{{ g.goal.title.fr }}</span>
<span class="removable">{{ localizeString(g.goal.title) }}</span>
</div>
<div>
<add-result :goal="g.goal" destination="goal"></add-result>
@@ -112,7 +112,7 @@
@click="addGoal(g)"
:key="g.id"
>
<span>{{ g.title.fr }}</span>
<span>{{ localizeString(g.title) }}</span>
</li>
</ul>
</template>
@@ -157,7 +157,7 @@
@click="addEvaluation(e)"
:key="e.id"
>
<span>{{ e.title.fr }}</span>
<span>{{ localizeString(e.title) }}</span>
</li>
</ul>
</div>
@@ -460,6 +460,7 @@ import OnTheFly from "ChillMainAssets/vuejs/OnTheFly/components/OnTheFly.vue";
import ListWorkflowModal from "ChillMainAssets/vuejs/_components/EntityWorkflow/ListWorkflowModal.vue";
import PersonText from "ChillPersonAssets/vuejs/_components/Entity/PersonText.vue";
import { makeFetch } from "ChillMainAssets/lib/api/apiMethods";
import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizationHelper";
const i18n = {
messages: {
@@ -661,6 +662,7 @@ export default {
},
},
methods: {
localizeString,
toggleSelect() {
this.isExpanded = !this.isExpanded;
},