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

Dayjs should fallback to locale xx if xx-YY is not supported #1523

Open
codeability-ab opened this issue Jun 6, 2021 · 2 comments
Open

Dayjs should fallback to locale xx if xx-YY is not supported #1523

codeability-ab opened this issue Jun 6, 2021 · 2 comments

Comments

@codeability-ab
Copy link
Contributor

Describe the bug
I'm trying to use locale sv-SE. Only sv.js is available.

Expected behavior
Dayjs should fallback to sv.js

Information

  • Day.js Version 1.10.4
  • OS: Windows 10, MacOS 11.3
  • Browser: Chrome 90, Node 14 when running a modified dayjs/locale/sv.test.js
  • Time zone: [e.g. GMT+1 / CET

Point me in the right direction and I can try to fix it and file a PR

best regards Johan

@codeability-ab
Copy link
Contributor Author

I also think that if xx-yy exists, it should be loaded when locale xx-YY is provided.

@codeability-ab
Copy link
Contributor Author

I registered a pull request for this issue: #1524

Sorry: I'm a 99.9% BitBucket guy, I don't know how to link PR to issue :-(

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

No branches or pull requests

1 participant