#TIL `Intl.NumberFormat` with compact notation doesn't work for thousands in German language.

E.g.: 10000 → 10.000 instead of "10 Tsd.". But, 10000000 → "10 Mio."

I guess "Tsd." doesn't really compact it much unlike English's "10K" 🤷‍♂️

Relevant research: https://github.com/dart-lang/i18n/issues/156#issuecomment-1513218006
> "Tsd does not occur in the CLDR data" https://st.unicode.org/cldr-apps/v#/de/Compact_Decimal_Formatting/ff7ca46dee120b1

#JavaScript #Intl #WebDev

NumberFormat.compact() - No notation for thousands in German · Issue #156 · dart-lang/i18n

The compact number format for German does not have a notation for thousands. When formatting 100000 with NumberFormat.compact() in German I get: 100000 The desired result would be: 100 Tsd. (In Eng...

GitHub
@cheeaun that's a TIL for me too, even though I work in web dev in Germany - albeit for a US-facing site
@cheeaun @sarajw FWIW, I think the only time we “compact” thousands is if we have graphs that are annotated with “in Tsd. Einwohner”, for example and then the graph drops the three zeros. I don’t think in normal writing anyone would with “10 Tsd.” instead of “10.000” or “zehntausend” which are all about a similar length.