Fix deprecation warning on moment().locale()