StringTableJson
- Namespace: Turian.Engine.Core
- Source File: StringTableJson.cs
JSON serialization for a StringTable. The shape is shared by the .strings source files, their baked import artifacts, and the Turian.Editor.Core.LocalizationExchange exporters: { "locale": "pt-BR", "entries": [ { "key": "menu.file", "source": "File", "translation": "Arquivo", "state": "translated", "note": "Main menu, first item", "plurals": { "one": "# item", "other": "# items" } } ] }
Public Methods
Load
public static StringTable Load(string json)
Parses a table from its JSON text.
Parameters:
json(string): The JSON text.
Returns: StringTable
- The parsed table.
Save
public static string Save(StringTable table)
Serializes a table to JSON text.
Parameters:
table(StringTable): The table to serialize.
Returns: string
- The JSON text.