feat: add html lang attribute (#53)

Co-authored-by: Anthony Lukin <anthony@lukin.dev>
This commit is contained in:
Paul Werner 2023-10-04 21:50:00 +02:00
parent 01df82a237
commit a7d7a668e4
21 changed files with 21 additions and 20 deletions

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -1,4 +1,4 @@
<html> <html lang="en">
<head> <head>
<title>Sign in to </title> <title>Sign in to </title>
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -78,6 +78,7 @@ public class LoginDataModel {
Map<String, Object> locale = new HashMap<>(); Map<String, Object> locale = new HashMap<>();
locale.put("current", "English"); locale.put("current", "English");
locale.put("currentLanguageTag", "en");
locale.put("supported", supported); locale.put("supported", supported);
return locale; return locale;

View file

@ -65,7 +65,7 @@
</#if> </#if>
</#assign> </#assign>
<html> <html<#if realm.internationalizationEnabled> lang="${locale.currentLanguageTag}"</#if>>
<head> <head>
<@document.kw script=script /> <@document.kw script=script />
</head> </head>