diff --git a/docs/moment/07-customization/00-intro.md b/docs/moment/07-customization/00-intro.md index 56987ad84..a015bd616 100644 --- a/docs/moment/07-customization/00-intro.md +++ b/docs/moment/07-customization/00-intro.md @@ -31,6 +31,14 @@ moment.defineLocale('en-foo', { ``` Properties that are not specified in the locale will be inherited from the parent locale. +As of **2.16.0** it is possible to define a locale with a parent that hasn't itself been defined or loaded. + +```javascript +moment.defineLocale('fakeLocale', {parentLocale:'xyz'}) +``` + +As of **2.21.0** when attempting to create a moment with the newly defined locale, moment will attempt to lazy load the parent if it exists. Failing that it will default the parent to the global locale. + As of **2.12.0** it is also possible to update a locale's properties. ```javascript