C# Class Polyglot.Localization

Inheritance: UnityEngine.ScriptableObject
Afficher le fichier Open project: Skjalgsm/PolyglotUnity

Private Properties

Свойство Type Description
GetLanguageDirection LanguageDirection
IsLanguageSupported bool

Méthodes publiques

Méthode Description
AddOnLocalizeEvent ( ILocalize localize ) : void

Add a Localization listener to catch the event that is invoked when the selected language is changed.

Get ( string key ) : string

Retreives the correct language string by key.

GetFormat ( string key ) : string

InvokeOnLocalize ( ) : void
KeyExist ( string key ) : bool
RemoveOnLocalizeEvent ( ILocalize localize ) : void

Removes a Localization listener.

SelectLanguage ( int selected ) : void

Select a language, used by dropdowns and the like.

Private Methods

Méthode Description
GetLanguageDirection ( Language language ) : LanguageDirection
IsLanguageSupported ( Language language ) : bool

Method Details

AddOnLocalizeEvent() public méthode

Add a Localization listener to catch the event that is invoked when the selected language is changed.
public AddOnLocalizeEvent ( ILocalize localize ) : void
localize ILocalize
Résultat void

Get() public static méthode

Retreives the correct language string by key.
public static Get ( string key ) : string
key string The key string
Résultat string

GetFormat() public static méthode

public static GetFormat ( string key ) : string
key string
Résultat string

InvokeOnLocalize() public méthode

public InvokeOnLocalize ( ) : void
Résultat void

KeyExist() public static méthode

public static KeyExist ( string key ) : bool
key string
Résultat bool

RemoveOnLocalizeEvent() public méthode

Removes a Localization listener.
public RemoveOnLocalizeEvent ( ILocalize localize ) : void
localize ILocalize
Résultat void

SelectLanguage() public méthode

Select a language, used by dropdowns and the like.
public SelectLanguage ( int selected ) : void
selected int
Résultat void