Packagestarlingbuilder.engine.localization
Interfacepublic interface ILocalizationHandler
Implementors DefaultLocalizationHandler

Interface for cases that localization needs special treatment (e.g. change to a different font for some languages) Once passed into UIBuilder, the callback will be fired automatically when the localization is happening.

See also

starlingbuilder.engine.UIBuilder


Public Methods
 MethodDefined By
  
localize(object:DisplayObject, text:String, paramsDict:Dictionary, locale:String):void
Callback function when a display object is localized
ILocalizationHandler
Method Detail
localize()method
public function localize(object:DisplayObject, text:String, paramsDict:Dictionary, locale:String):void

Callback function when a display object is localized

Parameters

object:DisplayObject — display object
 
text:String — text of the display object
 
paramsDict:Dictionary — params dictionary of meta data
 
locale:String — the current locale