From: Lucas Sanders Date: Sat, 25 Oct 2014 15:54:46 +0000 (-0400) Subject: Update deprecation warning for moment().lang() X-Git-Tag: 2.8.4~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd2e1876ac9be9a71cfd87d6e25433d90dbd3151;p=thirdparty%2Fmoment.git Update deprecation warning for moment().lang() Our advice for users should match our implementation of the compatibility shim, which uses localeData() as a getter and locale() as a setter. --- diff --git a/moment.js b/moment.js index 798842b49..182b3c743 100644 --- a/moment.js +++ b/moment.js @@ -2555,7 +2555,7 @@ }, lang : deprecate( - 'moment().lang() is deprecated. Use moment().localeData() instead.', + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) { if (key === undefined) { return this.localeData();