Class JsonTranslationSource
Parses a JSON file and provides the entries to LocalizationService.
The Json should be in this format:
{
"phrase-title": {
"en": "Title",
"es": "Topico",
"ar": "عربی"
},
"phrase-back": {
...
}
}
Inheritance
JsonTranslationSource
Assembly: NoSuchStudio-Localization.dll
Syntax
[ExecuteAlways]
public class JsonTranslationSource : FileTranslationSource, ITranslationSource, ILocalizationServiceComponent, IServiceComponent<LocalizationService>
Methods
ExportAsJsonString(Dictionary<String, Dictionary<String, String>>)
Declaration
public static string ExportAsJsonString(Dictionary<string, Dictionary<string, string>> translations)
Parameters
Returns
ReadTranslationsFromFile()
Declaration
protected override List<TranslationEntry> ReadTranslationsFromFile()
Returns
Overrides
Implements
IServiceComponent<>