multi language support
This commit is contained in:
parent
48cdac80fb
commit
a8aebfe14a
@ -8,6 +8,7 @@ angular.module('insight',[
|
|||||||
'ui.bootstrap',
|
'ui.bootstrap',
|
||||||
'ui.route',
|
'ui.route',
|
||||||
'monospaced.qrcode',
|
'monospaced.qrcode',
|
||||||
|
'gettext',
|
||||||
'insight.system',
|
'insight.system',
|
||||||
'insight.socket',
|
'insight.socket',
|
||||||
'insight.blocks',
|
'insight.blocks',
|
||||||
|
|||||||
@ -47,7 +47,8 @@ angular.module('insight')
|
|||||||
$locationProvider.html5Mode(true);
|
$locationProvider.html5Mode(true);
|
||||||
$locationProvider.hashPrefix('!');
|
$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() {
|
$rootScope.$on('$routeChangeStart', function() {
|
||||||
ngProgress.start();
|
ngProgress.start();
|
||||||
});
|
});
|
||||||
|
|||||||
4
public/src/js/translations.js
Normal file
4
public/src/js/translations.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
angular.module('insight').run(['gettextCatalog', function (gettextCatalog) {
|
||||||
|
/* jshint -W100 */
|
||||||
|
/* jshint +W100 */
|
||||||
|
}]);
|
||||||
Loading…
Reference in New Issue
Block a user