Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 589 Bytes

02-define-locale.md

File metadata and controls

12 lines (10 loc) · 589 Bytes
title
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