Localizer Static
Handles localization and translation logic within Erios.
Fields
| Type | Name | Static | Default | Description |
|---|---|---|---|---|
| DynamicList__Translation__instance__instance | Translations | Erios.Data.DynamicList`1[Godot.Translation] |
Functions
AddTranslation(string,string,string)
Registers a new translation key for the specified locale.
AddTranslation(locale: string,key: string,message: string) -> nil
| Type | Name | Description |
|---|---|---|
| string | locale | |
| string | key | |
| string | message |
GetLocales
Returns a list of all registered localizations. Additional translations or languages can be added via
GetLocales() -> String[]
Translate(string)
Translate(key: string) -> string
| Type | Name | Description |
|---|---|---|
| string | key |