translations: move some computations to server start-up, remove console.log, add translations to $rootScope, update readme, update user.preference.language if not set
This commit is contained in:
@@ -11,6 +11,8 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
$rootScope.user = User.user;
|
||||
$rootScope.settings = User.settings;
|
||||
|
||||
$rootScope.translations = window.env.translations;
|
||||
|
||||
// Angular UI Router
|
||||
$rootScope.$state = $state;
|
||||
$rootScope.$stateParams = $stateParams;
|
||||
|
||||
Reference in New Issue
Block a user