/localization

Simple localization system

Primary LanguageShaderLabThe UnlicenseUnlicense

Simple Localization System

color:ff69b4 color:ff69b4

Localization system with support Google Sheet support.

Installation

Installation as a unity module via a git link in PackageManager or direct editing of `Packages/manifest' is supported.json:

"com.elmortem.localization": "https://github.com/elmortem/localization.git?path=Packages/localization",

Google Sheet example

https://docs.google.com/spreadsheets/d/1q1MeK6qlmNKO2uf-yuRJlGW5EZZ0BJ15XO6Tu-8TjU0

Settings

Create and setup LocalizationSettings asset.

Locale

Create LocaleAsset from Asset menu. Setup import from Google Sheet.

LocalizeString attribute

Add attribute LocalizeString for string property;

[LocalizeString]
public string TextKey;

Localize

var loclizationText = TextKey.Localize();
var formattedText = TextKey.LocalizeFormat(arg0, arg1, arg2);

Text Mesh Pro

Add component LocalizeText at the same level as TMP_Text to static localize text field.

Experimental feature

Add define LOCALIZE_EXPERIMENTAL to apply experimental keys selector with search and groups.

Pluralism

In progress...

Other

Support Unity 2019.3 or later.

Use for free.

Enjoy!