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

moment.updateLocale not effect #5977

Open
86driver opened this issue Feb 15, 2022 · 1 comment
Open

moment.updateLocale not effect #5977

86driver opened this issue Feb 15, 2022 · 1 comment

Comments

@86driver
Copy link

// global.jsx
const momentResources = {
         weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
}
import moment from 'moment';
moment.updateLocale('zh', momentResources)
// another.jsx
import moment from 'moment';
console.log(moment)
/**
 still en,  
weekdaysShort:  'January_February_March_April_May_June_July_August_September_October_November_December'.split(
          '_'
        ),
**/
@86driver
Copy link
Author

found this pronblem. becaseof third package coveraged updateLocale. so any solution to solve this problem?

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