The tool is an internal localization system for unity-based projects with support of right-to-left (RTLL) translation.
- Go to release page.
- Download the lates release of the package.
- Import it to your unity project.
LTR: Left To Right RTL : Right To Left
!! ATTENTION !! The release package is installed and set for 3 languages : Turkish , English and Arabic . The installation process below is for the ones who would like to add more languages to their system .
- Create
Assets/Resources/Data/Localization
folder if doesn't exists already. - Under Localization Folder >> Create 3 Folders named
AlphabetFontMatrix
,Alphabets
andLanguages
if doesn't exits already. - Under Alphabets folder >>
Right click >> Create >> Localization >> Alphabet
(Create as many alphabets as you want). - Set RTL or LTR writing orientation for your language (RTL : Right to left , LTR : Left to right) .
- Under
AlphabetFontMatrix
folder>> Right click >> Create >> Localization >> AlphabetFontMatrix
- Set length according to your font variety . If you wish to use only 1 font for your whole project set length to 1 if more set it as you wish. (I'm assuming that you're using only one text font for your project.)
- Set Latin font attribute to a font value which compatible for RTLTmpro asset . (typeof : TMP_FontAsset )
- Set alphabet and its font in this matrix . (e.g. Latin Alphabet , MyriadPro-Regular SDF(TMP_FontAsset) ).
- Under
Languages
folder>> Right Click >> Create >> Localization >> Language
and set its Alphabet, Name , Icon and compatible system language text. (Repeat this step for as many language you would like to add in to your project.)
- Right
Click>>Create>>Localization>>(Language Dependent Text/Sprite/Video)
- Set size for your language dependent item (I used Language dependent text for demonstration). Size indicates how many language that your text gonna be able to be translated .
- Drag and drop your previously created language items froum your resources folder (If can't be found please proceed to the installation above)
- Set content for your text .
- Head to your
hierarchy >> right click >> UI >> Text - RTLTMP >> Click add component >> Language text
. - Set
Lang Dependent Text
attribute on yourLanguage text
(Which you have created on first step ) . - Press play and you are done !
Demo project can be found under Assets/Scenes
folder named SampleScene
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.