json5 work

This commit is contained in:
Joe 2026-01-22 22:19:00 -06:00
parent cd63b5c9c0
commit fdd1d145cf
22 changed files with 1977 additions and 90 deletions

View file

@ -10,7 +10,16 @@ expression: contents
<Item class="LocalizationTable" referent="1">
<Properties>
<string name="Name">normal</string>
<string name="Contents">[{"key":"Count","example":"A number demonstrating issue 145","source":"3","values":{"es":"7"}}]</string>
<string name="Contents">[
{
key: "Count",
example: "A number demonstrating issue 145",
source: "3",
values: {
es: "7",
},
},
]</string>
</Properties>
</Item>
</Item>

View file

@ -10,7 +10,63 @@ expression: contents
<Item class="LocalizationTable" referent="1">
<Properties>
<string name="Name">normal</string>
<string name="Contents">[{"key":"Language.Name","source":"English","values":{}},{"key":"Language.Region","source":"United States","values":{}},{"key":"Label.Thickness","source":"Thickness","values":{}},{"key":"Label.Opacity","source":"Opacity","values":{}},{"key":"Toolbar.Undo","source":"Undo","values":{}},{"key":"Toolbar.Redo","source":"Redo","values":{}},{"key":"Toolbar.Camera","source":"Top-down camera","values":{}},{"key":"Toolbar.Saves","source":"Saved drawings","values":{}},{"key":"Toolbar.Preferences","source":"Settings","values":{}},{"key":"Toolbar.Mode.Vector","source":"Vector mode","values":{}},{"key":"Toolbar.Mode.Pixel","source":"Pixel mode","values":{}}]</string>
<string name="Contents">[
{
key: "Language.Name",
source: "English",
values: {},
},
{
key: "Language.Region",
source: "United States",
values: {},
},
{
key: "Label.Thickness",
source: "Thickness",
values: {},
},
{
key: "Label.Opacity",
source: "Opacity",
values: {},
},
{
key: "Toolbar.Undo",
source: "Undo",
values: {},
},
{
key: "Toolbar.Redo",
source: "Redo",
values: {},
},
{
key: "Toolbar.Camera",
source: "Top-down camera",
values: {},
},
{
key: "Toolbar.Saves",
source: "Saved drawings",
values: {},
},
{
key: "Toolbar.Preferences",
source: "Settings",
values: {},
},
{
key: "Toolbar.Mode.Vector",
source: "Vector mode",
values: {},
},
{
key: "Toolbar.Mode.Pixel",
source: "Pixel mode",
values: {},
},
]</string>
</Properties>
</Item>
</Item>

View file

@ -10,7 +10,16 @@ expression: contents
<Item class="LocalizationTable" referent="1">
<Properties>
<string name="Name">normal</string>
<string name="Contents">[{"key":"Ack","example":"An exclamation of despair","source":"Ack!","values":{"es":"¡Ay!"}}]</string>
<string name="Contents">[
{
key: "Ack",
example: "An exclamation of despair",
source: "Ack!",
values: {
es: "¡Ay!",
},
},
]</string>
</Properties>
</Item>
</Item>

View file

@ -1,18 +1,27 @@
---
source: tests/tests/build.rs
assertion_line: 100
expression: contents
---
<roblox version="4">
<Item class="LocalizationTable" referent="0">
<Properties>
<string name="Name">init_csv_with_children</string>
<string name="Contents">[{"key":"init.csv","values":{}}]</string>
<string name="Contents">[
{
key: "init.csv",
values: {},
},
]</string>
</Properties>
<Item class="LocalizationTable" referent="1">
<Properties>
<string name="Name">other</string>
<string name="Contents">[{"key":"other.csv","values":{}}]</string>
<string name="Contents">[
{
key: "other.csv",
values: {},
},
]</string>
</Properties>
</Item>
</Item>