KEYCLOAK-2240
Internationalize admin console title
This commit is contained in:
parent
18268f686c
commit
39904548eb
3 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Keycloak Admin Console</title>
|
||||
<title></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="${resourceUrl}/img/favicon.ico">
|
||||
<#if properties.styles?has_content>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
consoleTitle=Keycloak Admin Console
|
||||
|
||||
# Common messages
|
||||
enabled=Enabled
|
||||
name=Name
|
||||
|
|
|
@ -61,7 +61,11 @@ angular.element(document).ready(function () {
|
|||
module.factory('Auth', function() {
|
||||
return auth;
|
||||
});
|
||||
angular.bootstrap(document, ["keycloak"]);
|
||||
var injector = angular.bootstrap(document, ["keycloak"]);
|
||||
|
||||
injector.get('$translate')('consoleTitle').then(function(consoleTitle) {
|
||||
document.title=consoleTitle;
|
||||
});
|
||||
}, function() {
|
||||
window.location.reload();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue