Method | Description | |
---|---|---|
AddFromFilesInFolder ( string path, ILocalTextRegistry registry = null ) : void | ||
AddFromNestedDictionary ( JToken>.IDictionary |
Adds translation from a hierarchical local text dictionary parsed from JSON file.
|
|
AddJsonTexts ( this registry, string path ) : void |
Adds translations from JSON files at specified path. File names in this directory should be in format {anyprefix}.{languageID}.json where {languageID} is a language code like 'en', 'en-GB' etc.
|
|
ProcessNestedDictionary ( JToken>.IDictionary |
Converts translation from a hierarchical local text dictionary to a simple dictionary.
|
public static AddFromFilesInFolder ( string path, ILocalTextRegistry registry = null ) : void | ||
path | string | |
registry | ILocalTextRegistry | |
return | void |
public static AddFromNestedDictionary ( JToken>.IDictionary |
||
nested | JToken>.IDictionary | Object parsed from local text JSON string |
prefix | string | Prefix to prepend before local text keys |
languageID | string | Language ID |
registry | ILocalTextRegistry | Registry |
return | void |
public static AddJsonTexts ( this registry, string path ) : void | ||
registry | this | Registry |
path | string | Path containing JSON files |
return | void |
public static ProcessNestedDictionary ( JToken>.IDictionary |
||
nested | JToken>.IDictionary | Object parsed from local text JSON string |
prefix | string | Prefix to prepend before local text keys |
target | string>.Dictionary | Target dictionary that will contain keys and translations |
return | void |