This library intends to use at small Unity project that needs to be localized to multiple languages.
Download From Here or if you would like, buy it at Asset Store! (currently in review)
- Automatically inject strings to text-type component.
- Automatically inject images to image-type component.
- Simple API
- Load multi-language definition file. (TSV)
- Editor preview and useful warnings.
Add String Localizer next to the supported component and enter String ID. It suggest candidate IDs as you type.
Localized strings will be injected when the component starts.
Supported component:
- TextMesh
- Text (UI)
- TextMeshPro
- TextMeshProUGUI
Add Image Localizer next to the supported component and set images.
Localized images will be injected when the component starts.
Supported component:
- Renderer
- Image
- RawImage
Add Audio Localizer next to the supported component and set AudioClips.
Localized audio will be injected when the components starts.
Supported component:
- AudioSource
var text = Localizer.GetStringFromId("helloworld"); // ex. Hello, World!
var jpText = Localizer.GetStringFromId("helloworld", "Japanese"); // ex. ハローワールド
Localizer.ActivateNextLanguage(); // easiest way
Localizer.ActivatePreviousLanguage();
Localizer.ChangeLanguage("Japanese");
Localizer.LanguageList; // returns List<string>
Localizer.CurrentLanguageName; // returns string
Localizer.Load();
Localizer.InjectAll();
if you want to use this asset with TextMesh Pro, you need to enable TMP Integration. It's easy, just check a box.
Copyright (c) 2020 pCYSl5EDgo
Copyright (c) 2019 Doug Tangren