Packagestarlingbuilder.engine.localization
Interfacepublic interface ILocalization
Implementors DefaultLocalization

Interface of localizing display objects. It's used in both the editor and the project. Once passed into UIBuilder, the localization will work automatically when UIBuilder.load() is called

See also

starlingbuilder.engine.UIBuilder


Public Properties
 PropertyDefined By
  locale : String
Current locale property.
ILocalization
Public Methods
 MethodDefined By
  
getKeys():Array
Get all the available keys (only used in the editor).
ILocalization
  
getLocales():Array
Get all the available locales (only used in the editor).
ILocalization
  
getLocalizedText(key:String):String
Get localized text from key
ILocalization
Property Detail
localeproperty
locale:String

Current locale property.


Implementation
    public function get locale():String
    public function set locale(value:String):void
Method Detail
getKeys()method
public function getKeys():Array

Get all the available keys (only used in the editor). Only used in editor.

Returns
Array — array of keys
getLocales()method 
public function getLocales():Array

Get all the available locales (only used in the editor).

Returns
Array — array of locales
getLocalizedText()method 
public function getLocalizedText(key:String):String

Get localized text from key

Parameters

key:String — key of the text

Returns
String — localized text