Unity Simple Localization is a set of free and open source cross-platform tools to localize your games or applications powered by Scriptable Objects with Easy-to-Use components and string editor.
Requirements:
- Unity 2019+;
- TextMeshPro for UI Localized Text;
Future updates will be contain an editor for non-string assets;
Unity Simple Localization has own Setup Wizzard, Locale Creation and Editing tools, Localized Text, Image and Audio Clips Components.
Installation process:
- Download and import latest release from this page;
- Run Setup Wizzard;
- Edit your Locales;
- See usage examples below;
Configuration Using Setup Wizzard:
Using Setup Wizzard (Simple Localization -> Setup Wizzard) you can setup your Simple Localization Configuration buy few clicks.
You can select default language, initialization method, fallback string and add available languages.
Locales Editor:
Using Locale Table Editor (Simple Localization -> Tables -> Edit Locale Table) you can setup your strings for localization.
If you need localize Images or Audio Clips - use LocalizedImage component:
Manual Setup: You can disable initialization at startup and initialize your instance by code:
Localization.Main.Initialize(LocaleDB configuration = null); // Setup Configuration
You can simply subscribe to localization switch event and manage your code using current language:
// Event
Localization.Main.OnLanguageSwitched?.AddListener(YOUR_CALLBACK_FOR_EVENT);
// Get Current Language Data
var langData = Localization.Main.GetCurrentLanguage();
I plan to add the following functionality in the near future:
- Editor for localized Images, Audios and other assets;
- New Table editor for locale tables;
You can support the development and updating of libraries and assemblies by dropping a coin:
Bitcoin (BTC) | bc1qef2d34r4xkrm48zknjdjt7c0ea92ay9m2a7q55 |
Etherium (ETH) | 0x1112a2Ef850711DF4dE9c432376F255f416ef5d0 |
Boosty | https://boosty.to/devsdaddy |