Skip to content

💥✏️Change liter abbreviations to lowercase l (v6) #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

angularsen
Copy link
Owner

@angularsen angularsen commented Jul 8, 2024

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

Fixes #1115

Change from `L` to `l` in unit abbreviations for liters.

- `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`
@angularsen angularsen merged commit ea9d006 into release/v6 Jul 8, 2024
1 check passed
@angularsen angularsen deleted the agl/standardize-liter branch July 8, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant