Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
W3C Internationalization, i18n
W3C Internationalization, i18n
@webi18n@w3c.social  ·  activity timestamp 3 weeks ago

We just dropped two super useful articles:

- Addresses look wildly different around the world (order, details, even postal codes). This one explains the chaos and how to build forms/apps that don't frustrate international users.

- Easy guide to JavaScript's built-in Intl API, with real examples for formatting dates, numbers, currencies, etc., the right way for any language/region.

🔗 Addresses: https://www.w3.org/International/questions/qa-address-formats
🔗 Intl guide: https://www.w3.org/International/articles/intl/index

An address in Germany. The street name comes first, followed by the house number.
An address in Germany. The street name comes first, followed by the house number.
An address in Germany. The street name comes first, followed by the house number.
  • Copy link
  • Flag this post
  • Block
Sebastian Lasse
Sebastian Lasse
@sl007@digitalcourage.social  ·  activity timestamp 3 weeks ago

@webi18n

Thank you !!! (!)

JS Intl is probably the most underestimated thing in the web :)

Try to ask devs. where in the browser you find the name in all the languages of all ISO stuff like countries, regions, languages currency.
Try to ask where all the timezones of the world are or how you give people internationalized lists, number expressions or relative time …

This is all https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl and in #ActivityPub we just need to federate e.g. id: "DE" for Germany.
It is crazy nice for https://martinfowler.com/bliki/Datensparsamkeit.html as well - our preview of the countries tsv incl. all stats like Pressfreedom Index is around 50kb …
Die AI, die.

#i18n #intl

martinfowler.com

bliki: Datensparsamkeit

Datensparsamkeit is an approach to handling data, saying that we should only acquire and store data that we really need, to protect the privacy of our users.

Intl - JavaScript | MDNMDN

The Intl namespace object contains several constructors as well as functionality common to the internationalization constructors and other language sensitive functions. Collectively, they comprise the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, date and time formatting, and more.
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct