mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
make momentjs work with chinese (fix #366)
This commit is contained in:
@@ -49,7 +49,11 @@ module.factory('SettingsService', ['$resource', function($resource) {
|
||||
s.init = function(callback) {
|
||||
res.get(function(data) {
|
||||
s.settings = data;
|
||||
moment.lang(s.settings.language || 'en', {});
|
||||
var lang = s.settings.language || 'en';
|
||||
if (lang === 'zh') {
|
||||
lang = 'zh-cn';
|
||||
}
|
||||
moment.lang(lang, {});
|
||||
if (callback) {
|
||||
callback(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user