We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Date
sugar
Only the en locale is present when I downloaded the package. When I tried to setLocale('es') it threw an error. I had to add them manually from this link:https://github.com/andrewplummer/Sugar/tree/master/lib/locales
en
setLocale('es')
Is there a way to ship them without doing so manually?
The text was updated successfully, but these errors were encountered:
@HNOONa-0 you need to to something like that:
import ptSugar from 'node_modules/sugar/locales/pt'; Sugar.Date.addLocale('pt', ptSugar); Sugar.Date.setLocale('pt');
Sorry, something went wrong.
No branches or pull requests
Only the
en
locale is present when I downloaded the package. When I tried tosetLocale('es')
it threw an error. I had to add them manually from this link:https://github.com/andrewplummer/Sugar/tree/master/lib/localesIs there a way to ship them without doing so manually?
The text was updated successfully, but these errors were encountered: