mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
json5 work
This commit is contained in:
parent
cd63b5c9c0
commit
fdd1d145cf
22 changed files with 1977 additions and 90 deletions
|
|
@ -243,7 +243,7 @@ fn convert_localization_csv(contents: &[u8]) -> Result<String, csv::Error> {
|
|||
}
|
||||
|
||||
let encoded =
|
||||
serde_json::to_string(&entries).expect("Could not encode JSON for localization table");
|
||||
json5::to_string(&entries).expect("Could not encode JSON5 for localization table");
|
||||
|
||||
Ok(encoded)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,5 +22,5 @@ name: foo
|
|||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[\n {\n key: \"Ack\",\n example: \"An exclamation of despair\",\n source: \"Ack!\",\n values: {\n es: \"¡Ay!\",\n },\n },\n]"
|
||||
children: []
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ name: root
|
|||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[\n {\n key: \"Ack\",\n example: \"An exclamation of despair\",\n source: \"Ack!\",\n values: {\n es: \"¡Ay!\",\n },\n },\n]"
|
||||
children: []
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ name: root
|
|||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[\n {\n key: \"Ack\",\n example: \"An exclamation of despair\",\n source: \"Ack!\",\n values: {\n es: \"¡Ay!\",\n },\n },\n]"
|
||||
children: []
|
||||
|
|
|
|||
|
|
@ -22,5 +22,5 @@ name: foo
|
|||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[\n {\n key: \"Ack\",\n example: \"An exclamation of despair\",\n source: \"Ack!\",\n values: {\n es: \"¡Ay!\",\n },\n },\n]"
|
||||
children: []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue