danreeves / dt-exchange

39 stars 18 forks source link

Update localisation.json #74

Closed CautemocSg closed 1 year ago

CautemocSg commented 1 year ago

Updated localisation file through a JSON schema formatter to prevent errors based on object irregularities

CautemocSg commented 1 year ago

Schema checked as:

{ "type": "object", "patternProperties": { ".*": { "type": "object", "properties": { "display_name": { "type": "string" }, "description": { "type": "string" } } } } }

danreeves commented 1 year ago

As a followup, I re-exported the strings from the game: https://github.com/danreeves/dt-exchange/commit/d9b84102f16a6cd76b17602059724ef7be051e40 and wrote a test to ensure json structure https://github.com/danreeves/dt-exchange/commit/a9e32e9f4486d92e83cdbe0174377ad1936ee9db#diff-2c61fe66171faaa89bc05d8164a77d1779dab0c7867fb4bda6b5317ea3437950

For reference, I export the localisation.json using this mod: https://github.com/danreeves/darktide-mods/blob/main/Exporter/scripts/mods/Exporter/Exporter.lua#L264