Skip to content

Commit 7640147

Browse files
feat: curriculum dictionaries to objects (freeCodeCamp#40878)
* test: update to catch missing comments * feat: convert dictionaries to JSON objects * chore: update dictionaries * fix: update tests for new dictionary objects * fix: convert fixture to json * fix: updated the incomplete dicts to new format
1 parent 2a23c2d commit 7640147

16 files changed

+399
-1416
lines changed
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
[
2-
{
3-
"id": "hyek8f",
4-
"text": "Chinese translation one"
5-
},
6-
{
7-
"id": "rscjup",
8-
"text": "Chinese translation two"
9-
}
10-
]
1+
{
2+
"hyek8f": "Chinese translation one",
3+
"rscjup": "Chinese translation two"
4+
}

curriculum/__fixtures__/dictionaries/english/comments-to-not-translate.js

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rms15q": "Not translated one",
3+
"78gz3i": "Not translated two"
4+
}
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
[
2-
{
3-
"id": "hyek8f",
4-
"text": "To be translated one"
5-
},
6-
{
7-
"id": "rscjup",
8-
"text": "To be translated two"
9-
}
10-
]
1+
{
2+
"hyek8f": "To be translated one",
3+
"rscjup": "To be translated two"
4+
}
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
[
2-
{
3-
"id": "hyek8f",
4-
"text": "Spanish translation one"
5-
},
6-
{
7-
"id": "rscjup",
8-
"text": "Spanish translation two"
9-
}
10-
]
1+
{
2+
"hyek8f": "Spanish translation one",
3+
"rscjup": "Spanish translation two"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"hyek8f": "Chinese translation one",
3+
"rscjup": "Chinese translation two"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rms15q": "Not translated one",
3+
"78gz3i": "Not translated two"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"hyek8f": "To be translated one",
3+
"rscjup": "To be translated two"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"hyek8f": "Spanish translation one"
3+
}

0 commit comments

Comments
 (0)