Holds, converts and localizes content for different regions.
More...
|
static void | Init () |
| Initialises the Localization Manager. The supported languages are defined in a file at "Content/local/_languages.json". This should be a dictionary of 2-digit language codes and language name.
|
|
static bool | SetLocalization (string key) |
| Set's the current loca.
|
|
static string | GetText (string key) |
| Returns the localised text for the give key. If no key exists in the language pack, then it simply returns the key.
|
|
static void | DumpMissingKeys () |
|
|
static string | LocalContentRootPath = @"local" |
| The Content Root path for localization files. The default is 'local' but you can change this to anything else before calling 'SetLocalization'.
|
|
|
static Dictionary< string, string > | SupportedLangagues [get] |
| A key-value pair for the Supported Languages by this game. The key is the 2-digit ISO code, and the value is the language name.
|
|
static string | CurrentLanguage [get] |
|
Holds, converts and localizes content for different regions.
◆ GetText()
static string VerticesEngine.vxLocalizer.GetText |
( |
string | key | ) |
|
|
static |
Returns the localised text for the give key. If no key exists in the language pack, then it simply returns the key.
- Parameters
-
◆ SetLocalization()
static bool VerticesEngine.vxLocalizer.SetLocalization |
( |
string | key | ) |
|
|
static |
Set's the current loca.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/Localization/vxLocalizer.cs