multi language support
This commit is contained in:
parent
48cdac80fb
commit
a8aebfe14a
|
@ -8,6 +8,7 @@ angular.module('insight',[
|
|||
'ui.bootstrap',
|
||||
'ui.route',
|
||||
'monospaced.qrcode',
|
||||
'gettext',
|
||||
'insight.system',
|
||||
'insight.socket',
|
||||
'insight.blocks',
|
||||
|
|
|
@ -47,7 +47,8 @@ angular.module('insight')
|
|||
$locationProvider.html5Mode(true);
|
||||
$locationProvider.hashPrefix('!');
|
||||
})
|
||||
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress) {
|
||||
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress, gettextCatalog) {
|
||||
gettextCatalog.currentLanguage = 'en';
|
||||
$rootScope.$on('$routeChangeStart', function() {
|
||||
ngProgress.start();
|
||||
});
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
angular.module('insight').run(['gettextCatalog', function (gettextCatalog) {
|
||||
/* jshint -W100 */
|
||||
/* jshint +W100 */
|
||||
}]);
|
Loading…
Reference in New Issue