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>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Keycloak Admin Console</title>
|
<title></title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="${resourceUrl}/img/favicon.ico">
|
<link rel="shortcut icon" href="${resourceUrl}/img/favicon.ico">
|
||||||
<#if properties.styles?has_content>
|
<#if properties.styles?has_content>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
consoleTitle=Keycloak Admin Console
|
||||||
|
|
||||||
# Common messages
|
# Common messages
|
||||||
enabled=Enabled
|
enabled=Enabled
|
||||||
name=Name
|
name=Name
|
||||||
|
|
|
@ -61,7 +61,11 @@ angular.element(document).ready(function () {
|
||||||
module.factory('Auth', function() {
|
module.factory('Auth', function() {
|
||||||
return auth;
|
return auth;
|
||||||
});
|
});
|
||||||
angular.bootstrap(document, ["keycloak"]);
|
var injector = angular.bootstrap(document, ["keycloak"]);
|
||||||
|
|
||||||
|
injector.get('$translate')('consoleTitle').then(function(consoleTitle) {
|
||||||
|
document.title=consoleTitle;
|
||||||
|
});
|
||||||
}, function() {
|
}, function() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue