Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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.

localization manager

Usage

  1. 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.
  2. 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.

Total Installs
0
Last 30 days
Unique IPs
0
Approximate users

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

Style
Preview
pkglnk installs badge
Markdown
[![pkglnk installs](https://www.pkglnk.dev/badge/simplelocalization.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/simplelocalization)
HTML
<a href="https://www.pkglnk.dev/pkg/simplelocalization"><img src="https://www.pkglnk.dev/badge/simplelocalization.svg?style=pkglnk" alt="pkglnk installs"></a>

Comments

No comments yet. Be the first!