Class EditorI18N
- Namespace
- JLChnToZ.VRC.Foundation.I18N
I18N manager for editor.
public class EditorI18N
- Inheritance
-
EditorI18N
- Inherited Members
- Extension Methods
Properties
CurrentLanguage
The current language.
public string CurrentLanguage { get; set; }
Property Value
Instance
The singleton instance of EditorI18N.
public static EditorI18N Instance { get; }
Property Value
this[string]
Get the localized string by key.
public string this[string key] { get; }
Parameters
keystring
Property Value
LanguageIndex
The index of the current language.
public int LanguageIndex { get; set; }
Property Value
LanguageNames
The display names of available languages.
public string[] LanguageNames { get; }
Property Value
- string[]
Methods
GetOrDefault(string, string)
Get the localized string by key, or return the default value if not found.
public string GetOrDefault(string key, string defaultValue = null)
Parameters
Returns
- string
The localized string.
Reload()
Reload the I18N data.
public void Reload()