C# Class LeopotamGroup.Localization.Localizer

Localizer - helper for localization. Supports dynamic overriding of localization tokens with rollback.
Mostrar archivo Open project: Leopotam/LeopotamGroupLibraryUnity

Public Methods

Method Description
AddDynamicSource ( string sourcePath ) : void

Add non-unloadable localization source. Can overrides loaded tokens and be removed by UnloadDynamics call.

AddStaticSource ( string sourcePath ) : void

Add non-unloadable localization source.

Get ( string token ) : string

Get localization for token.

RelocalizeUI ( ) : void

Raise "OnLocalize" message on all active GameObjects.

UnloadDynamics ( ) : void

Unload all dynamics localization sources.

Private Methods

Method Description
LoadAsset ( string assetPath ) : string
LoadData ( string data, string[]>.Dictionary storage ) : void
Localizer ( ) : System
SetLanguage ( string lang ) : void

Method Details

AddDynamicSource() public static method

Add non-unloadable localization source. Can overrides loaded tokens and be removed by UnloadDynamics call.
public static AddDynamicSource ( string sourcePath ) : void
sourcePath string Source path.
return void

AddStaticSource() public static method

Add non-unloadable localization source.
public static AddStaticSource ( string sourcePath ) : void
sourcePath string Source path.
return void

Get() public static method

Get localization for token.
public static Get ( string token ) : string
token string Localization token.
return string

RelocalizeUI() public static method

Raise "OnLocalize" message on all active GameObjects.
public static RelocalizeUI ( ) : void
return void

UnloadDynamics() public static method

Unload all dynamics localization sources.
public static UnloadDynamics ( ) : void
return void