Localization system


I began searching for options to implement localization for the game, and tested some Unity plugins; but all of them seemed too complex for the relatively small amount of text I plan to have in the game (at least for now).

So, I decided to roll my own system, which uses a small JSON file containing a list of translation units. Each translation unity is an entry in the file (as seen in the image above) with an ID used in the Unity editor and/or code, and the translation(s) for each language (for now, only Spanish and English).

Some entries have several translations; they are meant for random selection during runtime; for example, when the inhabitants ask for your help, the file lists four possible texts associated with that situation.

It's simple but functional; perhaps when I finish the project I'll make a package to share with other people that could benefit from it.

Get Dis Pontibus 2

Buy Now$6.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.