Skip to content

Commit ea9d006

Browse files
authored
💥✏️Change liter abbreviations to lowercase l (v6) (#1404)
Fixes #1115 Change from `L` to `l` in unit abbreviations for liters, to be consistent in library and to follow SI Unit System conventions. Note: - Parsing is backwards compatible, since parsing unit abbreviations has fallback to case insensitive as long as there is no ambiguity. E.g. `Volume.Parse("10 L")` and `Volume.Parse("10 l")` both work. - To avoid breaking backwards compatibility, we keep `liter` instead of `litre` when naming units. Also updated wiki: https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit#abbreviation-naming-conventions ### Changed units - `Density.GramPerLiter` + prefixes - `FuelEfficiency.LiterPer100Kilometers` - `FuelEfficiency.KilometerPerLiter` - `MassConcentration.GramPerMicroliter` - `MassConcentration.GramPerMilliliter` - `MassConcentration.GramPerDeciliter` - `MassConcentration.GramPerLiter` - `Molarity.MolePerLiter` - `VolumeConcentration.LitersPerLiter` - `VolumeConcentration.LitersPerMililiter` - `VolumeFlow.LiterPerSecond` - `VolumeFlow.LiterPerMinute` - `VolumeFlow.LiterPerHour` - `VolumeFlow.LiterPerDay`
1 parent 3ff48c6 commit ea9d006

18 files changed

+693
-693
lines changed

Common/UnitDefinitions/Density.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"Localization": [
192192
{
193193
"Culture": "en-US",
194-
"Abbreviations": [ "g/L" ]
194+
"Abbreviations": [ "g/l" ]
195195
}
196196
]
197197
},

Common/UnitDefinitions/FuelEfficiency.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Localization": [{
1212
"Culture": "en-US",
1313
"Abbreviations": [
14-
"L/100km"
14+
"l/100km"
1515
]
1616
}]
1717
},
@@ -47,7 +47,7 @@
4747
"Localization": [{
4848
"Culture": "en-US",
4949
"Abbreviations": [
50-
"km/L"
50+
"km/l"
5151
]
5252
}]
5353
}

Common/UnitDefinitions/MassConcentration.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"Localization": [
7777
{
7878
"Culture": "en-US",
79-
"Abbreviations": [ "g/μL" ]
79+
"Abbreviations": [ "g/μl" ]
8080
}
8181
]
8282
},
@@ -93,7 +93,7 @@
9393
"Localization": [
9494
{
9595
"Culture": "en-US",
96-
"Abbreviations": [ "g/mL" ]
96+
"Abbreviations": [ "g/ml" ]
9797
}
9898
]
9999
},
@@ -106,7 +106,7 @@
106106
"Localization": [
107107
{
108108
"Culture": "en-US",
109-
"Abbreviations": [ "g/dL" ]
109+
"Abbreviations": [ "g/dl" ]
110110
}
111111
]
112112
},
@@ -123,7 +123,7 @@
123123
"Localization": [
124124
{
125125
"Culture": "en-US",
126-
"Abbreviations": [ "g/L"]
126+
"Abbreviations": [ "g/l"]
127127
}
128128
]
129129
},

Common/UnitDefinitions/Molarity.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Localization": [
3939
{
4040
"Culture": "en-US",
41-
"Abbreviations": [ "mol/L", "M" ]
41+
"Abbreviations": [ "mol/l", "M" ]
4242
}
4343
]
4444
},

Common/UnitDefinitions/VolumeConcentration.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"Localization": [
2626
{
2727
"Culture": "en-US",
28-
"Abbreviations": [ "L/L" ]
28+
"Abbreviations": [ "l/l" ]
2929
}
3030
]
3131
},
@@ -38,7 +38,7 @@
3838
"Localization": [
3939
{
4040
"Culture": "en-US",
41-
"Abbreviations": [ "L/mL" ]
41+
"Abbreviations": [ "l/ml" ]
4242
}
4343
]
4444
},

Common/UnitDefinitions/VolumeFlow.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"Localization": [
186186
{
187187
"Culture": "en-US",
188-
"Abbreviations": [ "L/s", "LPS" ]
188+
"Abbreviations": [ "l/s", "LPS" ]
189189
},
190190
{
191191
"Culture": "ru-RU",
@@ -202,7 +202,7 @@
202202
"Localization": [
203203
{
204204
"Culture": "en-US",
205-
"Abbreviations": [ "L/min", "LPM" ]
205+
"Abbreviations": [ "l/min", "LPM" ]
206206
},
207207
{
208208
"Culture": "ru-RU",
@@ -219,7 +219,7 @@
219219
"Localization": [
220220
{
221221
"Culture": "en-US",
222-
"Abbreviations": [ "L/h", "LPH" ]
222+
"Abbreviations": [ "l/h", "LPH" ]
223223
},
224224
{
225225
"Culture": "ru-RU",
@@ -236,7 +236,7 @@
236236
"Localization": [
237237
{
238238
"Culture": "en-US",
239-
"Abbreviations": [ "l/day", "L/d", "LPD" ]
239+
"Abbreviations": [ "l/day", "l/d", "LPD" ]
240240
}
241241
]
242242
},

0 commit comments

Comments
 (0)