Class LocalisationManager
Manages the localisation as a static class.
Namespace: JelleVer.Localisation
Assembly: cs.temp.dll.dll
Syntax
public class LocalisationManager : MonoBehaviour
Methods
ChangeLanguage()
Changes the language to the next in line, looping over every language
Declaration
public static string ChangeLanguage()
Returns
| Type | Description |
|---|---|
| String | The current language string |
GetCurrentLanguage()
Get the current language string
Declaration
public static string GetCurrentLanguage()
Returns
| Type | Description |
|---|---|
| String | The string of the current active language. |
GetLocalisedValue(String)
returns a localised value of a given key, throws warning if not found
Declaration
public static string GetLocalisedValue(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key |
Returns
| Type | Description |
|---|---|
| String | the correct value of the current language, returns empty if key is empty |
UpdateDictionaries()
Parses the Localisation csv.
Declaration
public static void UpdateDictionaries()