-
-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization #73
Comments
It's a great idea. What I can do is add the framework to the code, and let others contribute their own translations. |
@orangesunny Need help! |
Hi! We will be happy to host the translations. Once you have at least the base file in your repo, please, let us know on https://hosted.weblate.org/hosting/, and we will set up the translation project. As you have it mostly HTML and JS, I suppose you’ll use i18next, but feel free to choose any other according to its specifics: https://docs.weblate.org/en/latest/formats.html Translate libre, and have a great day! |
So I took a first stab at making a localization implementation. It can be used like this: I've created some example translation files. They do not get used unless specified. I liked my approach here as it lets me continue to develop the code base without a lot of clutter and without worrying about breaking existing language sets. I've yet to add a menu or option to select these translations, but they are not at least available as options. This code has been committed to master. |
@comradekingu Join in 😏 |
Would gladly contribute, will have a look. |
|
OBS.NInja now automatically uses a ru.json (russian) translation file if a ru-* (russian) locale is detected by the browser. ie) If Russian is the default language in chrome, then it will auto-translate to Russian. You can also manually select Russian by using the &ln=ru parameter to the URL. ie: result: I've also applied a French translation. English is the default, so the English translation file is purely for reference. Both the French and Russian translation files are created using Google Translate and are pretty bad. Please feel to fix any poor translation by editing the following file and submitting a PR: https://github.com/steveseguin/obsninja/blob/master/translations/ru.json If no json file exists for a given language, it will default back to english. I don't really see a need to use Webplate, as it seems a bit overkill for such a simple website. I would ultimately like to have as little text as possible on OBS.Ninja, so the goal should be finding ways to remove text, rather than translating it. ie) making it more intuitive and easier to use. I may not understand the benefits of Webplate though, so please let me know. |
@steveseguin |
|
Latest releases of OBS.Ninja have full-featured localization. V16 even improves this further. |
It is sad that the service is only in English - I propose to translate.
I am ready to help in the translation into Russian.
(For example, you can use Weblate, Crowdin, or any other service. Free for open source projects.)
The text was updated successfully, but these errors were encountered: