SetMessages() does not update i18n
Question
By default, the editor is initiated with english language when the init does not contain:
i18n: {
messages: { en: fr }
},
However, when I try to change the language using the i18n method: setMessages like below:
editor.I18n.setMessages({ en: tr });
this happens:
- Opened tabs (like Style Manager which by default gets open at load) do not get updated by the i18n.
- Panels hover titles do not get updated.
- Tabs which are not loaded (let's say Trait Manager) does get updated by the i18n (since it is not loaded before)
Answers (2)
Follow the issue template
Thanks for reporting this, @ahmedderkaoui. Thanks for sharing your report about setMessages() does not update i18n. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) Your GrapesJS version number Browser and OS information Any err...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3642
multiple page manager resets device manager
Hi, I have a small issue with the page manager. I want all the pages to have a fixed resolution. Height and width figures come from an API...
Issue #3377
StyleManager options repeating 2 times
Version: 0.16.45 If i add grapejs-preset-js, then stylemanager repeats each option 2 times. Here is the jsfiddle link where you can check t...
Issue #3661
style manager not working(styles has no effect)
hi, i am working on a plugin that will add all the properties of css3 into grapesjs. but all time i use the style manager the style do not...
Issue #3242
When Style Manager is in another div, the message "Select an element before using Style Manager" is not showing
Version: 0.16.34 What is the expected behavior? When the editor is initialized, no element is selected, so the style manager should say "Se...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.