Skip to content

Commit

Permalink
fix: labels are not translated in publication drawer - EXO-75965 - Me…
Browse files Browse the repository at this point in the history
…eds-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
  • Loading branch information
rdenarie committed Dec 12, 2024
1 parent 137a40f commit 446c774
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 446c774

Please sign in to comment.