I want browsers to localize data like dates and numbers #188
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As much of English-written content is targeting an international audience, I'd like to have a way for browsers to automatically show things like dates and numbers in the format that's preferred by the user. For numbers, this may require use of a new element (e.g.,
amount
).Example 1: Time
This could render as written or as "14 August 2008", "14. August 2008", or "August 14, 2008", depending on the user's settings.
Example 2: Currency
This would render as "€ 2,30", "2,30 €", or "€ 2.30" depending on the user's settings. Some browsers could even enhance this and provide current price in the users’ preferred currency based on current exchange rates.
Example 3: Weight
This could render as "2 kg" or "4.4 lbs" (with proper accessible expansions of units), depending on the user's settings.
https://webwewant.fyi/wants/59/
Beta Was this translation helpful? Give feedback.
All reactions