Server that manages all translations. Translations can be set to it and removed from it.
Static variables
Static methods
staticgetLocale():String
Returns the current locale of the project.
See also godot.OS.getLocale and godot.OS.getLocaleLanguage to query the locale of the user system.
staticgetLocaleName(locale:String):String
Returns a locale's language and its variant (e.g. "en_US" would return "English (United States)").
staticsetLocale(locale:String):Void
Sets the locale of the project. The locale string will be standardized to match known locales (e.g. en-US would be matched to en_US).
If translations have been loaded beforehand for the new locale, they will be applied.
statictranslate(message:String):String
Returns the current locale's translation for the given message (key).