Momentjs-checking-current-locale
提供:Dev Guides
moment.locale()を使用して現在のロケールを確認できます。
moment.locale();
moment.locale('fr');
var k = moment.locale();
moment.locale('fr');
var k = moment.locale();
moment.locale('ja');
var s = moment.locale();
moment.locales()
上記の例では、* locale.min.js をすべてのロケールで使用しているため、 moment.locales()*は上記のようにすべてのロケールを表示します。