logo

You can switch between loaded languages using the switchLanguage function. This will load the specified language and set it as the current language.

if (Lang.switchLanguage("fr")) {
    trace("Switched to French");
} else {
    trace("Fallback to default language");
}

lang: The language code you want to switch to (e.g., "fr").

This function returns true if the language switch is successful, or false if the fallback language is used.