Class DefaultLocalizeService
Declaration
public class DefaultLocalizeService : BaseLocalizeHelper, ILocalizeService, ILocalizeHelper
Inheritance: System.Object
-> MatchinghamGames.Localization.Helpers.BaseLocalizeHelper
Implements:
MatchinghamGames.Localization.Models.ILocalizeService, MatchinghamGames.Localization.Models.ILocalizeHelper
Methods
LoadData(string)
Declaration
protected override void LoadData(string targetLanguageCode)
Parameters
Type | Name |
---|---|
System.String | targetLanguageCode |
ImportLanguage(string, string)
Declaration
protected void ImportLanguage(string languageCode, string md5Hash)
Parameters
Type | Name |
---|---|
System.String | languageCode |
System.String | md5Hash |
UnloadData()
Declaration
protected override void UnloadData()
Get(string, string)
Declaration
public override string Get(string key, string fallback = "")
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | fallback |
GetFormatted(string, string, string)
Declaration
public override string GetFormatted(string key, string args0, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | fallback |
GetFormatted(string, string, string, string)
Declaration
public override string GetFormatted(string key, string args0, string args1, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | args1 |
System.String | fallback |
GetFormatted(string, string, string, string, string)
Declaration
public override string GetFormatted(string key, string args0, string args1, string args2, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | args1 |
System.String | args2 |
System.String | fallback |
TryGet(string, out string)
Declaration
public override bool TryGet(string key, out string value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.String | value |
InvokeLanguageChangeWhenReady()
Declaration
public virtual void InvokeLanguageChangeWhenReady()