Add fakes library: recursive JSON template engine, i18n locales, Docker workflow

This commit is contained in:
lilleman
2026-06-05 19:51:18 +02:00
parent 725126a9e9
commit 943a1d9f1b
19 changed files with 1324 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
[
{
"format": "{street-number} {street}\n{locality}, {region} {postal-code}",
"street": [
{
"format": "{name} {suffix}",
"name": ["Cedar", "Elm", "Lincoln", "Maple", "Oak", "Pine", "Washington"],
"suffix": ["Street", "Avenue", "Drive", "Lane"]
}
],
"street-number": [
{
"format": "10"
},
{
"format": "100"
},
{
"format": "1000",
"weight": 0.5
}
],
"locality": ["Austin", "Boston", "Chicago", "Denver", "Houston", "Phoenix", "Portland", "Seattle"],
"region": ["CA", "IL", "MA", "NY", "TX", "WA"],
"postal-code": [
{
"format": "10000"
}
]
}
]
+16
View File
@@ -0,0 +1,16 @@
[
{
"format": "{prefix}{femalefirst|malefirst} {last}",
"femalefirst": ["Amelia", "Ava", "Charlotte", "Emma", "Evelyn", "Harper", "Isabella", "Mia", "Olivia", "Sophia"],
"malefirst": ["Benjamin", "Elijah", "Henry", "James", "Liam", "Lucas", "Mason", "Noah", "Oliver", "William"],
"last": ["Brown", "Davis", "Garcia", "Johnson", "Jones", "Miller", "Smith", "Taylor", "Williams", "Wilson"],
"prefix": [
"",
{
"format": "{title} ",
"title": ["Dr", "Mr", "Mrs", "Ms"],
"weight": 0.1
}
]
}
]
+8
View File
@@ -0,0 +1,8 @@
[
{
"format": "(100) 100-0000"
},
{
"format": "100-100-0000"
}
]
+39
View File
@@ -0,0 +1,39 @@
[
{
"format": "{street} {street-number}\n{postal-code} {locality}",
"street": [
{
"format": "{first}{last}",
"first": ["Bergs", "Kungs", "Stor"],
"last": ["gatan", "vägen", "stigen"]
},
["Vintjärn", "Staby", "Promenaden"]
],
"street-number": [
{
"format": "1"
},
{
"format": "10"
},
{
"format": "100",
"weight": 0.2
},
{
"format": "1A",
"weight": 0.2
},
{
"format": "10A",
"weight": 0.1
}
],
"postal-code": [
{
"format": "100 10"
}
],
"locality": ["Göteborg", "Linköping", "Malmö", "Stockholm", "Uppsala", "Västerås", "Örebro"]
}
]
+22
View File
@@ -0,0 +1,22 @@
[
{
"format": "{prefix}{femalefirst|malefirst} {last}",
"femalefirst": ["Anna", "Astrid", "Elin", "Emma", "Ingrid", "Karin", "Linnéa", "Maria", "Sara", "Sofia"],
"malefirst": ["Anders", "Erik", "Gustav", "Johan", "Karl", "Lars", "Mikael", "Nils", "Oskar", "Per"],
"last": [
{
"format": "{first}sson",
"first": ["Ander", "Erik", "Johan", "Karl", "Lar"]
},
["Berg", "von Flemming", "Eismar"]
],
"prefix": [
"",
{
"format": "{string} ",
"string": ["dr", "prof"],
"weight": 0.05
}
]
}
]
+12
View File
@@ -0,0 +1,12 @@
[
{
"format": "#070-000 00 00",
"weight": 10
},
{
"format": "#01-000 00 00"
},
{
"format": "#010-000 00 00"
}
]