Skip to content

Commit

Permalink
Add nmi abbreviation for nautical miles (#1411)
Browse files Browse the repository at this point in the history
Closes #1410. 

Also fixes the JSON formatting in `Turbidity.json` so that
it is consistent with the rest.
  • Loading branch information
PesBandi authored Jul 11, 2024
1 parent c16c80a commit e276347
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/UnitDefinitions/Length.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "NM" ]
"Abbreviations": [ "NM", "nmi" ]
},
{
"Culture": "ru-RU",
Expand Down
2 changes: 1 addition & 1 deletion Common/UnitDefinitions/Turbidity.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": ["NTU"]
"Abbreviations": [ "NTU" ]
}
]
}
Expand Down
24 changes: 24 additions & 0 deletions UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion UnitsNet/GeneratedCode/Resources/Length.restext
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Mils=mil
Miles=mi
Millimeters=mm
Nanometers=nm
NauticalMiles=NM
NauticalMiles=NM,nmi
Parsecs=pc
Picometers=pm
PrinterPicas=pica
Expand Down

0 comments on commit e276347

Please sign in to comment.