Simply localize text based on the Resources/i18n/
folder in your Unity project.
-
Create a
Resources/i18n
directory in your assets dir. -
Create a file based on the language that you are going to use, this is an
en.txt
file.
# Comments start with #
#
# Empty lines are ignored.
# key = text can go here along the entire line
sample.text = This is a sample text that will appear in the text area.
- Add a
Text
component and add the componentI18NText
from theUI
context menu.
- One of the ideas is to have a
.dll
for each version after version2019.4.8f1
(LTS only). - Add an editor in unity for all the values