Skip to content
Go to file
Cannot retrieve contributors at this time
12 lines (10 sloc) 589 Bytes
Define Locale Override
Use moment.updateLocale(localeName, config) to change an existing locale. 
moment.defineLocale(localeName, config) should only be used for creating a new locale

This deprecation warning is thrown when you attempt to change an existing locale using the defineLocale function. Doing this will result in unexpected behavior related to property inheritance. moment.updateLocale will properly replace properties on an existing locale.

View original pull request

You can’t perform that action at this time.