Chore: wysiwyg i18n setup
Once https://github.com/withstudiocms/studiocms/pull/876 merges, the WYSIWYG plugin will need to be configured to add supported languages into its config and set it up to be able to listen to our i18n update events.
For docs related to grapesjs i18n see:
- https://grapesjs.com/docs/modules/I18n.html#configuration
- https://grapesjs.com/docs/api/i18n.html
Hi , can you explain this a little more. I have worked previously on i18n . I would like to contribute on this. @Adammatthiesen
Hi , can you explain this a little more. I have worked previously on i18n . I would like to contribute on this. @Adammatthiesen
Hi @yashseth391
This task is to integrate the current WYSIWYG editor (comp) with our dashboard i18n locale nanostore system to listen to language changes (an example can be found here of how to setup subscriptions to the current lang, which will in turn if the WYSIWYG language is available cause the editor to also switch (see grapesjs docs for how to setup the editor side of things).
The general idea will be to setup in the script of the editor the locale subscription, setup grapes i18n support according to their docs and then use the subscription to set the language on change if its a supported language (StudioCMS current supported language translations can be viewed on crowdin)
Hi , can you explain this a little more. I have worked previously on i18n . I would like to contribute on this. @Adammatthiesen
Hi @yashseth391
This task is to integrate the current WYSIWYG editor (comp) with our dashboard i18n locale nanostore system to listen to language changes (an example can be found here of how to setup subscriptions to the current lang, which will in turn if the WYSIWYG language is available cause the editor to also switch (see grapesjs docs for how to setup the editor side of things).
The general idea will be to setup in the script of the editor the locale subscription, setup grapes i18n support according to their docs and then use the subscription to set the language on change if its a supported language (StudioCMS current supported language translations can be viewed on crowdin)
I would like to contribute to this @Adammatthiesen .
@yashseth391
Feel free to open a PR and in the description mention this issue number where it says closes..., we mainly use the assign functionality for delegating tasks/issues to maintainers of our org.
Simply making your comment is enough for us to leave the issue for a few days for you to figure things out.
Hacktoberfest credit comes from the PR not the issue so you will get credit once the PR is accepted.
⚠️ Please note: StudioCMS codebase is far to complex to have AI running around trying to understand our code. Even our Review AI Coderabbit has issues sometimes as we are still training it to understand our codebase. So we ask everyone to keep AI in "Ask" or "Assist" mode and not in "Agent" mode.
Also please make sure to setup a local playground using our instructions on the main project readme, so that you will be able to verify that its working on your end as the WYSIWYG editor testing is a bit limited due to how it works.
Thanks @Adammatthiesen! I’ll ping you if I need help.
Thanks @Adammatthiesen! I’ll ping you if I need help.
Sounds good! also feel free to join our discord https://chat.studiocms.dev and ask questions there as well! (tend to see that before GitHub due to GitHub's horrible notification system)