Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@formatjs/intl-locale/polyfill-force TypeError: Error uninitialized locale at Locale2.getWeekInfo #4375

Closed
smiffp opened this issue Mar 17, 2024 · 7 comments
Labels

Comments

@smiffp
Copy link

smiffp commented Mar 17, 2024

Which package?

@formatjs/intl-locale

Describe the bug

I need to polyfill Intl.Locale for getWeekInfo. Calling getWeekInfo throws an the following error: TypeError: Error uninitialized locale at Locale2.getWeekInfo

To Reproduce

Codesandbox URL

Code sandbox

Reproducible Steps/Repo

  • import @formatjs/intl-locale/polyfill-force
  • call getWeekInfo

Expected behavior

I expect to get the week info.

Screenshots

Screenshot 2024-03-17 at 1 08 11 PM

Desktop (please complete the following information):

  • OS: macOs Sonoma 14.0
  • Browser: Chrome
  • Version: 122.0.6261.129 (Official Build) (arm64)

Smartphone (please complete the following information):

N/A

Additional context

N/A

@smiffp smiffp added the bug label Mar 17, 2024
@longlho
Copy link
Member

longlho commented Mar 27, 2024

is the codesandbox public? I got a 404

@smiffp
Copy link
Author

smiffp commented Mar 27, 2024

is the codesandbox public? I got a 404

I do not use codesandbox frequently 😅. It should be public now.

@smiffp
Copy link
Author

smiffp commented Apr 18, 2024

@longlho Any progress on this?

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 18, 2024
@smiffp
Copy link
Author

smiffp commented May 19, 2024

@longlho Have you had time to check this out?

@github-actions github-actions bot removed the Stale label May 19, 2024
@longlho
Copy link
Member

longlho commented May 19, 2024

latest version should have the fix for this

@smiffp
Copy link
Author

smiffp commented May 20, 2024

I have verified via CodeSandbox that this issue is resolved. Thanks @longlho !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants