I18n

Class for actual i18n

Members

Static functions

get
string get(string id, string locale)

Getter for the translation

getCurrentLocale
string getCurrentLocale()
getFallback
string getFallback(string id, string fallback, string locale)

Getter for the translation

getLoadedLocales
string[] getLoadedLocales()
loadLocale
void loadLocale(string path)

Loads locale from JSON file

loadLocaleFromMemory
void loadLocaleFromMemory(string data)

Loads locale from data

loadLocales
void loadLocales(string path)

Loads all locales from the folder (non recursive)

Meta