eea / volto-accordion-block

A volto group accordion block.
MIT License
7 stars 8 forks source link

I'd like to contribute i18n translations, but make i18n doesn't work #111

Open fredvd opened 2 weeks ago

fredvd commented 2 weeks ago

make i18n assumes there is a local node modules installed, but most other make command and make install build docker containers/use docker compose. How can I contribute an extra set of locales? (for Dutch/NL)

stevepiercy commented 2 weeks ago

https://github.com/eea/volto-accordion-block/blob/master/DEVELOP.md refers to old Volto docs, which are now https://6.docs.plone.org/volto/contributing/developing-core.html, https://6.docs.plone.org/i18n-l10n/contributing-translations.html#translate-volto, and https://6.docs.plone.org/volto/development/i18n.html.

erral commented 2 weeks ago

Create the nl/LC_MESSAGES/ folder, copy over the volto.pot file there as volto.po and contribute the translations.

When the addon will be installed in a given frontend, it's a frontend's task to run yarn i18n and collect the translations from the addons.

https://6.docs.plone.org/volto/addons/i18n.html

stevepiercy commented 2 weeks ago

Here it is in the docs, Internationalization and Localization > Translate Volto. LOL, @erral I should read what we collaborated on 2 years ago more carefully!

However, I think the following docs updates would help developers navigate to the right location.

Does all that sound correct? If so, then I can do the docs updates in various repos and PRs. Please let me know. Thank you!