implemented i18n
I've implemented i18n translation framework and also added English and German as language. I'm no developer, so please have a look over it
@kruemelro this is so awesome, great work!
i don't have much time this week, i'll review and merge it next week for sure. Thanks again!
Really cool feature ! It would be great if the translations were also available on the homepage.
If I have some time, I'll add a language selector to the menu.
I'll add Polish/Russian/Ukrainian translations after merge
this is will be added to 2.0. i'll keep this PR open
Really cool feature ! It would be great if the translations were also available on the homepage.
If I have some time, I'll add a language selector to the menu.
I have implemented the language selector in my branch that is based on this PR.
https://github.com/alexanderwassbjer/split-pro/tree/feature/i18n-support
Good PR! Some missing strings otherwise good!
@KMKoushik I can continue on this PR and add all the missing strings, fix language switcher, date-fns locale support etc. Do you want me to continue and make a PR? π
Any news here? Switching language would be great!
Hi guys! π
I implemented translations using i18n, following the approach already present in the project, but I made some significant improvements to make the code more organized, maintainable, and accessible even to those unfamiliar with programming.
What I did: Clear separation of translation files: I separated translations into distinct files for each language (e.g., groups_details.json, groups_page.json, etc.). This makes it easier to add new languages or modify existing translations without digging through the code.
Dynamic language support: Itβs now possible to pass the desired language as a parameter (e.g., it or en), and the system will automatically load the correct translations. Additionally, duplicating an existing language folder will automatically add a menu item to switch to the newly created language, all without touching the code.
Why these changes are useful: Maintainability: Adding new languages or modifying translations is now much simpler.
Clarity: Translations are organized intuitively, making it easier for non-developers to work with them.
Flexibility: Dynamic language support makes the system ready for future expansions.
Link to the Pull Request: π Click here to view the Pull Request #208
Screenshot:
Feel free to review and let me know if there are any suggestions or changes to make! π
Thanks, Rosso Simone
@kruemelro @KMKoushik @Striffly @vovagorodok @alexanderwassbjer
@kruemelro Are you still interested in implementing i18n? I'm not that familiar with i18n, maybe you and @Rosso2004 could collaborate on a joint PR? :)
I would concentrate the efforts on PR #208, but can reopen if needed. Currently my focus is elsewhere, but if someone picks up translations I would be happy to review it and merge it