i18n now working

This commit is contained in:
Athou
2014-08-10 15:20:04 +02:00
parent f9e7958e8b
commit 39be4fec4e
53 changed files with 5310 additions and 210 deletions

View File

@@ -39,7 +39,7 @@ module.factory('SessionService', ['$resource', function($resource) {
return res;
}]);
module.factory('SettingsService', ['$resource', function($resource) {
module.factory('SettingsService', ['$resource', '$translate', function($resource, $translate) {
var res = $resource('rest/user/settings');
var s = {};
@@ -61,6 +61,7 @@ module.factory('SettingsService', ['$resource', function($resource) {
lang = 'ms-my';
}
moment.lang(lang, {});
$translate.use(lang);
if (callback) {
callback(data);
}