You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, guys, I really need some help.
I'm using angular 1.6, webpack and es6, I import moment and locale file , and did the configure as document said. but still can not set the locale lang.
Here's my code:
import angular from 'angular';
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
require('imports?this=>window,exports=>false,define=>false!angular-datepicker');
angular.module('adwApp', ['datePicker'])
as you see, the locale setting not working
The text was updated successfully, but these errors were encountered:
That's strange, as all locale related stuff is handled by moment. Try running moment.locale(); in your console after the page loads to verify that the locale is actually set to Chinese and didn't somehow get overridden.
Hi, guys, I really need some help.
I'm using angular 1.6, webpack and es6, I import moment and locale file , and did the configure as document said. but still can not set the locale lang.
Here's my code:
webpack.config.js:
index.html
app.js:
as you see, the locale setting not working
The text was updated successfully, but these errors were encountered: