Refactoring: allow to reuse units, move all units into central file
This commit is contained in:
parent
067fb549c1
commit
94e07d5b13
30 changed files with 1495 additions and 1307 deletions
|
@ -116,64 +116,13 @@
|
|||
],
|
||||
"units": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"maxspeed"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"#": "km/h is the default for a maxspeed; should be empty string",
|
||||
"canonicalDenomination": "",
|
||||
"alternativeDenomination": [
|
||||
"km/u",
|
||||
"kmh",
|
||||
"kph"
|
||||
],
|
||||
"human": {
|
||||
"en": "kilometers/hour",
|
||||
"ca": "quilòmetres/hora",
|
||||
"es": "kilómetros/hora",
|
||||
"nl": "kilometers/uur",
|
||||
"de": "Kilometer/Stunde",
|
||||
"cs": "kilometry/hodinu"
|
||||
},
|
||||
"humanShort": {
|
||||
"en": "km/h",
|
||||
"ca": "km/h",
|
||||
"es": "km/h",
|
||||
"nl": "km/u",
|
||||
"de": "km/h",
|
||||
"cs": "km/h"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "mph",
|
||||
"useIfNoUnitGiven": [
|
||||
"gb",
|
||||
"us"
|
||||
],
|
||||
"alternativeDenomination": [
|
||||
"m/u",
|
||||
"mh",
|
||||
"m/ph"
|
||||
],
|
||||
"human": {
|
||||
"en": "miles/hour",
|
||||
"ca": "milles/hora",
|
||||
"es": "millas/hora",
|
||||
"nl": "miles/uur",
|
||||
"de": "Meilen/Stunde",
|
||||
"cs": "míle/hodinu"
|
||||
},
|
||||
"humanShort": {
|
||||
"en": "mph",
|
||||
"ca": "mph",
|
||||
"es": "mph",
|
||||
"nl": "mph",
|
||||
"de": "mph",
|
||||
"cs": "mph"
|
||||
}
|
||||
}
|
||||
]
|
||||
"maxspeed": {
|
||||
"quantity": "speed",
|
||||
"denominations": [
|
||||
"kmh",
|
||||
"mph"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue