Package | starlingbuilder.engine.localization |
Class | public class DefaultLocalization |
Inheritance | DefaultLocalization Object |
Implements | ILocalization |
See also
Property | Defined By | ||
---|---|---|---|
locale : String
Current locale property. | DefaultLocalization |
Method | Defined By | ||
---|---|---|---|
DefaultLocalization(data:Object, locale:String = null)
Constructor
| DefaultLocalization | ||
getKeys():Array
Get all the available keys (only used in the editor). | DefaultLocalization | ||
getLocales():Array
Get all the available locales (only used in the editor). | DefaultLocalization | ||
getLocalizedText(key:String):String
Get localized text from key
| DefaultLocalization |
locale | property |
locale:String
Current locale property.
public function get locale():String
public function set locale(value:String):void
DefaultLocalization | () | Constructor |
public function DefaultLocalization(data:Object, locale:String = null)
Constructor
Parametersdata:Object — localization data
| |
locale:String (default = null ) — current locale
|
getKeys | () | method |
public function getKeys():Array
Get all the available keys (only used in the editor). Only used in editor.
ReturnsArray — array of keys
|
getLocales | () | method |
public function getLocales():Array
Get all the available locales (only used in the editor).
ReturnsArray — array of locales
|
getLocalizedText | () | method |
public function getLocalizedText(key:String):String
Get localized text from key
Parameters
key:String — key of the text
|
String — localized text
|