For AI agents: the complete documentation index is available at /lite-db/en/llms.txt, the full documentation bundle is available at /lite-db/en/llms-full.txt, and this page is available as Markdown at /lite-db/en/usage/localization.md.

Localization

The Achieve.Database.Localization namespace includes a simple localization helper backed by SQLite table data.

Setting the language

LocalizationManager.SetLanguage(SystemLanguage.Korean);

When the language changes, the LocalizationManager.onChangeLanguage event is invoked.

Looking up a string

var text = LocalizationManager.GetString(1001);

You can also specify the language explicitly.

var english = LocalizationManager.GetString(1001, SystemLanguage.English);

Looking up a collection

var collection = LocalizationManager.GetCollection(1001);
var data = collection.GetLocalizedData(SystemLanguage.Japanese);

The localization table model must support LiteDB.Get<LocalizationCollection>(key) based on LocalizationCollection.