String format in non english cultures #970
Unanswered
lenyturmel
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Hi, ToString with long unit nameThere is no support for long form names yet, sorry. We could add support for it similar to how we define abbreviations for different cultures: https://github.com/angularsen/UnitsNet/blob/master/Common/UnitDefinitions/Volume.json#L8-L25. Localize unit nameAgain, we support localization of abbreviations like "kg" and "cm", but currently no localization support for quantity name "Length" or unit name "Meter". Would you be interested in attempting a pull request on either of these? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
I have two questions about formatting units and quantities
I am not able to find how to format a quantity using the long name of the unit
Example:
Volume.FromLiters(1) //I would prefer "1 liter" and not "1 L"
I am not able to find how add new cultures for the ToString of units
Example:
Could you please help me and give some entry points or sample in order to do that ?
Thank you for your help (and thank you for this awesome library)
Beta Was this translation helpful? Give feedback.
All reactions