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
moment.locale() returns undefined after updating a non-existing locale #5043
Comments
keqingrong
changed the title
return undefined
moment.locale() returns undefined after updating a non-existing locale
Mar 18, 2019
nishantgupta204
pushed a commit
to nishantgupta204/moment
that referenced
this issue
May 1, 2019
This was referenced May 1, 2019
nishantgupta204
pushed a commit
to nishantgupta204/moment
that referenced
this issue
May 1, 2019
nishantgupta204
pushed a commit
to nishantgupta204/moment
that referenced
this issue
May 1, 2019
nishantgupta204
added a commit
to nishantgupta204/moment
that referenced
this issue
May 1, 2019
ichernev
added a commit
that referenced
this issue
Apr 27, 2020
ichernev
added a commit
that referenced
this issue
Apr 27, 2020
ichernev
added a commit
that referenced
this issue
Apr 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
moment.locale()
returnsundefined
after updating a non-existing locale.To Reproduce
Expected behavior
moment.updateLocale()
should ignore the non-existing locale or fallback tomoment.defineLocale()
, and gives a warning just like whatmoment.defineLocale()
did .Moment version
2.24.0
The text was updated successfully, but these errors were encountered: