| 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:StringCurrent 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
Parameters| data:Object— localization data | |
| locale:String(default =null)— current locale | 
| getKeys | () | method | 
 public function getKeys():ArrayGet all the available keys (only used in the editor). Only used in editor.
Returns| Array— array of keys | 
| getLocales | () | method | 
 public function getLocales():ArrayGet all the available locales (only used in the editor).
Returns| Array— array of locales | 
| getLocalizedText | () | method | 
 public function getLocalizedText(key:String):StringGet localized text from key
Parameters
| key:String— key of the text | 
| String— localized text |