FRP Simple Localization
A minimum tool for localization.
com.fredericrp.simplelocalization Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/simplelocalization.git README
Simple Localization
A simple tool for localization.
Description
A simple tool to load localized resource and trigger event based on it.

Usage
- Put the LocalizationManager prefab on your scene. Beware that it loads the default file on Awake, so better not put it on the first scene.
- Use the LocalizeText aside a Text component for it to be updated with the correct text, or use GetString on the manager to get a localized string.
LocalizationManager.GetString("game.title");
Set language manually
You can manually switch the used language (and loads it resource) by calling SetLanguage with the index matching the content of the "sl-language-list.txt" file located under the Resource folder, (yes, it is called "Simple" localization).
LocalizationManager.SetLanguage(1);
Be notified on language change
Use the LanguageUpdateEvent game event to be notified when the language change. This event passes the language index to it. If you need the name of the current language, you can do so by calling CurrentLanguageName on the LocalizationManager.
Demo
A demo is present in the GameQuest asset.
Installs Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
[](https://www.pkglnk.dev/pkg/simplelocalization)<a href="https://www.pkglnk.dev/pkg/simplelocalization"><img src="https://www.pkglnk.dev/badge/simplelocalization.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!