FRP Simple Localization
Load localized resources and manage language switching in your game with minimal overhead. FRP Simple Localization provides a LocalizationManager prefab, easy string retrieval via GetString(), manual language switching, and event-based notifications for language changes. Perfect for developers seeking a lightweight localization solution without complex dependencies.
com.fredericrp.simplelocalization 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/simplelocalization.git README Markdown
Copy this to your project's README.md
## Installation
Add **FRP Simple Localization** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/simplelocalization.git
```
[](https://www.pkglnk.dev/pkg/simplelocalization)Dependencies (4)
Used By (1)
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.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In