Added support for multiple languages#434
Open
Nawot wants to merge 2 commits intoOpenFactorioServerManager:developfrom
Open
Added support for multiple languages#434Nawot wants to merge 2 commits intoOpenFactorioServerManager:developfrom
Nawot wants to merge 2 commits intoOpenFactorioServerManager:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "i18next" and "react-i18next" libraries have been added, along with additional libraries ("i18next-browser-languagedetector", "i18next-http-backend").
All plain text displayed in the browser has been replaced. Now, each text element on the screen is retrieved by key from locale files and displayed in the desired language.
The ability to switch languages has been added. When switching, the language is saved in localstorage, and the desired language is displayed the next time the panel is opened.
This will also simplify the work for those who want to translate this panel into their own language. To do this, create a JSON file in the ui/App/locales/ folder and add a translation for each key, following the example of one of the translation files.
I just love use software on my own language. ❤️
P.s. I've never made pull requests before, so please forgive me if I formatted this incorrectly or made any mistakes.