I want to make the localization of the game into two languages, there is no clear guide anywhere in the net English again. Text a bit (4 words), but I’m a cruel sneaker, so please explain how to do it

    1 answer 1

    Well, the main logic here is what - pressing the button should change the language in some kind of config.

    Then the logic usually diverges a little, if there are many localizable resources in the project - sounds, textures, etc. then the game usually restarts to load everything in a new language when loading.

    If there are only strings in the game, then usually some event is triggered, for which all localized strings are signed, which in response to this request a new translation. Or another option is that all localized strings at the start are registered in the localization system and when the language changes, they are all replaced with new text.

    If you have only 4 words at all, then you can not even bother with localization keys, but to make the simplest working version - create a script that will have a link to the text field and two lines with translations into English and Russian.

    This script in the start will subscribe to any event that will be triggered when you click on the button to change the language. The response to the triggering of this event will be the selection of a string from another language.

    You can infinitely complicate, make the system expandable and abstract, but what's the point if you only need 4 words and 2 languages) In general, AssetStore has a lot of localization plug-ins, including free ones.