From 446c774322aa224552f78ea0f8c28894c1238781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Wed, 11 Dec 2024 17:36:55 +0100 Subject: [PATCH] fix: labels are not translated in publication drawer - EXO-75965 - meeds-io/MIPS#161 Before this fix, the i18n file for noptespublicationDrawer is not loaded when the drawer is opened from the news detail. This commit add the load of the needed file on drawer creation --- .../components/NotePublicationDrawer.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue index 107757e5f..1e580ad40 100644 --- a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue +++ b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue @@ -298,6 +298,14 @@ export default { } } }, + created() { + const lang = eXo.env.portal.language; + const urls = `/content/i18n/locale.portlet.notes.notesPortlet?lang=${lang}`; + + exoi18n.loadLanguageAsync(lang, urls) + .then(() => this.$nextTick()) + .finally(() => this.loading = false); + }, methods: { updateAdvancedSettings(settings) { this.advancedSettings = structuredClone(settings);