]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Update deprecation warning for moment().lang()
authorLucas Sanders <git@butterflyhug.com>
Sat, 25 Oct 2014 15:54:46 +0000 (11:54 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 17 Nov 2014 07:43:02 +0000 (23:43 -0800)
Our advice for users should match our implementation of the
compatibility shim, which uses localeData() as a getter and
locale() as a setter.

moment.js

index 798842b490504eeb3433b95a480708bc649ec783..182b3c74392b1d6d883b3da53064603c1e1532c5 100644 (file)
--- a/moment.js
+++ b/moment.js
         },
 
         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();