A successful attempt on adding switch language option in the angular app and integrating it with crowdin.com
Warning
Many pull requests resulted from changing places and names of translation files in order to add the switch language option and integrate it with crowdin.com.
Adding the switch language option
Integration with https://crowdin.com/project/user-management-ui
Translation into the Polish language
I added the Polish translation in order to check if the switch language option works.
Pull request:
167
Adding the switch language option in the angular app
I added the switch language option to create
additional dedicated um-translate module, which uses ngx-translation module.
In order to add translation service to modules (sid, shared, security), I added the UmTranslateService service.
In order to avoid errors, I added all the necessary translation files. For now, except the Polish language version, they all contain the English language version.
Next, I injected UmTranslationService into every module and used it in the html template.
Integrating crowdin.com with github.
An important element of the integration is the addition of a source file with translations,
eg. to_translate.json.
Summary.
Although initially I did not know the crowidin.com system and had to experiment with configuration, I managed to switch languages and integrate the translation files with crowdin.com.
I would like to thank crowdin.com for their generous help and free support for the open-source project under the GPL license.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @grzesiekb I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x