You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently impossible to extend localization support to custom Dimension, unfortunately. Currently we rely exclusively on ICU to fetch the localization. I imagine we'd need to add a hook in Measurement.FormatStyle to take localization via, say, our string localization infrastructure. Such "hook" will probably be public to allow extension in your own type, which means new API as well.
alpennec
changed the title
Custom Dimesion: how to support internationalisation in the symbols and UnitLength?
Custom Dimension: how to support internationalisation in the symbols and UnitLength?
Apr 5, 2024
I've defined a custom Dimension to represent the pace.
I want to format a
Measurement<UnitPace>
so it can be shown in the UI.How can I specify the localised strings for the different
UnitStyle
(short, medium, long) /UnitWidth
(wide, abbreviated, narrow) to use?The text was updated successfully, but these errors were encountered: