Refactoring: allow to reuse units, move all units into central file

This commit is contained in:
Pieter Vander Vennet 2023-12-12 03:46:51 +01:00
parent 067fb549c1
commit 94e07d5b13
30 changed files with 1495 additions and 1307 deletions

View file

@ -549,37 +549,12 @@
],
"units": [
{
"applicableUnits": [
{
"canonicalDenomination": "",
"alternativeDenomination": [
"mm",
"millimeter",
"millimeters"
],
"human": {
"en": "millimeters",
"nl": "millimeter",
"de": "Millimeter",
"pa_PK": "ملیمیٹر",
"ru": "миллиметры",
"ca": "mil·límetres",
"cs": "milimetry"
},
"humanSingular": {
"en": "millimeter",
"nl": "millimeter",
"de": "Millimeter",
"pa_PK": "ملیمیٹر",
"ru": "миллиметр",
"ca": "mil·límetre",
"cs": "milimetr"
}
}
],
"appliesToKey": [
"fire_hydrant:diameter"
]
"fire_hydrant:diameter": {
"quantity": "distance",
"denominations": [
"mm"
]
}
}
]
}