Multi-language support. English by default
This commit is contained in:
parent
08024c1c77
commit
302e75228d
8 changed files with 53 additions and 5 deletions
|
|
@ -79,7 +79,8 @@ angular
|
|||
$idleProvider.warningDuration(20); // in seconds
|
||||
$keepaliveProvider.interval(2); // in seconds
|
||||
})
|
||||
.run(function($rootScope, $location, $idle) {
|
||||
.run(function($rootScope, $location, $idle, gettextCatalog) {
|
||||
gettextCatalog.currentLanguage = config.defaultLanguage;
|
||||
$idle.watch();
|
||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
||||
if (!localStorage || localStorage.length < 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue