question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intl version missing country locale

See original GitHub issue

Issue Description

Locale English (Germany)

date.toLocaleString('en-DE', {year: 'numeric', month: 'numeric', day: 'numeric'})

returns

12/20/2012

but should return

20.12.2012

Locale German (United States)

date.toLocaleString('de-US', {year: 'numeric', month: 'numeric', day: 'numeric'})

returns

20.12.2012

but should return

12/20/2012

It seems like whatever country is specified in the locale it is just being ignored.

Version, config, any additional info

"jsc-android": "236355.1.1"

using intl via

implementation "org.webkit:android-jsc-intl:r236355"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Kudocommented, May 16, 2019

Thanks for your clear example. After some tracing and debugging, I found the root cause is that the ICU we used is not support en-DE locale, so it fallbacks to en. Update ICU could include more locale data but I should still profile the binary size increase.

0reactions
Kudocommented, Sep 6, 2019

Close this as #121 was merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[React Intl Error MISSING_DATA] Missing locale data for locale
Try upgrade your Node Version. I had 10 and moved to 14.x: Issue was gone.
Read more >
[Intl] forCountryCode() method requires uppercase locale codes
Country codes are uppercase per spec. We allow using lowercase codes everywhere in Intl. Why require uppercase here? Or am I missing ......
Read more >
Localized Versions of your Pages | Google Search Central
Learn how you can use a sitemap and other methods to tell Google about all of the different language and regional versions of...
Read more >
React Intl: Internationalize your React apps - LogRocket Blog
With the React Intl library, learn how to internationalize any React project to seamlessly change language and currency within web apps.
Read more >
The Intl Component (Symfony Docs)
The replacement layer is limited to the en locale. If you want to use other locales, you should install the intl extension. There...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found