logo

Once the language is loaded, you can fetch a translation by using the get function, which takes a string ID and returns the corresponding translation.

var greeting = Lang.get("greeting.hello");

trace(greeting); // Outputs the translation for "greeting.hello"

id: A string representing the translation key (e.g., "menu.play", "greeting.hello"). If the translation for the given ID is not found, or the language doesn't exist, "???" will be returned.