From e3e2ce38ac333383d87c9a3b5c141262ba897966 Mon Sep 17 00:00:00 2001 From: Paul Werner <52678724+paulwer@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:02:49 +0200 Subject: [PATCH 1/2] Update template.ftl --- theme/keywind/login/template.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/keywind/login/template.ftl b/theme/keywind/login/template.ftl index 216967474..7d389712b 100644 --- a/theme/keywind/login/template.ftl +++ b/theme/keywind/login/template.ftl @@ -65,7 +65,7 @@ - + lang="${locale.currentLanguageTag}"> <@document.kw script=script /> From 0641e004500789999e59feff433b9e538a79b5a5 Mon Sep 17 00:00:00 2001 From: Anthony Lukin Date: Wed, 4 Oct 2023 00:00:00 +0400 Subject: [PATCH 2/2] Update tests --- html/login/error.html | 2 +- html/login/login-config-totp.html | 2 +- html/login/login-idp-link-confirm.html | 2 +- html/login/login-oauth-grant.html | 2 +- html/login/login-otp.html | 2 +- html/login/login-page-expired.html | 2 +- html/login/login-password.html | 2 +- html/login/login-recovery-authn-code-config.html | 2 +- html/login/login-recovery-authn-code-input.html | 2 +- html/login/login-reset-password.html | 2 +- html/login/login-update-password.html | 2 +- html/login/login-update-profile.html | 2 +- html/login/login-username.html | 2 +- html/login/login.html | 2 +- html/login/logout-confirm.html | 2 +- html/login/register.html | 2 +- html/login/select-authenticator.html | 2 +- html/login/webauthn-authenticate.html | 2 +- html/login/webauthn-error.html | 2 +- src/test/java/org/keywind/theme/LoginDataModel.java | 1 + 20 files changed, 20 insertions(+), 19 deletions(-) diff --git a/html/login/error.html b/html/login/error.html index fc748f7c2..86dc49a5a 100644 --- a/html/login/error.html +++ b/html/login/error.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-config-totp.html b/html/login/login-config-totp.html index f0ddec764..06e6dbdc6 100644 --- a/html/login/login-config-totp.html +++ b/html/login/login-config-totp.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-idp-link-confirm.html b/html/login/login-idp-link-confirm.html index 766f492fe..ad5572c6f 100644 --- a/html/login/login-idp-link-confirm.html +++ b/html/login/login-idp-link-confirm.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-oauth-grant.html b/html/login/login-oauth-grant.html index 15089c274..23addbbe7 100644 --- a/html/login/login-oauth-grant.html +++ b/html/login/login-oauth-grant.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-otp.html b/html/login/login-otp.html index 4ddb94dec..38985be70 100644 --- a/html/login/login-otp.html +++ b/html/login/login-otp.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-page-expired.html b/html/login/login-page-expired.html index cf5b45693..f597b2d41 100644 --- a/html/login/login-page-expired.html +++ b/html/login/login-page-expired.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-password.html b/html/login/login-password.html index ca820c4b3..713b35215 100644 --- a/html/login/login-password.html +++ b/html/login/login-password.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-recovery-authn-code-config.html b/html/login/login-recovery-authn-code-config.html index 4b565646a..5da3d58bd 100644 --- a/html/login/login-recovery-authn-code-config.html +++ b/html/login/login-recovery-authn-code-config.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-recovery-authn-code-input.html b/html/login/login-recovery-authn-code-input.html index 221588b0d..1521267dd 100644 --- a/html/login/login-recovery-authn-code-input.html +++ b/html/login/login-recovery-authn-code-input.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-reset-password.html b/html/login/login-reset-password.html index 9f59d80a8..eb9c22de6 100644 --- a/html/login/login-reset-password.html +++ b/html/login/login-reset-password.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-update-password.html b/html/login/login-update-password.html index fb1548ec2..ab15b61fa 100644 --- a/html/login/login-update-password.html +++ b/html/login/login-update-password.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-update-profile.html b/html/login/login-update-profile.html index 2adc3313b..27bef9deb 100644 --- a/html/login/login-update-profile.html +++ b/html/login/login-update-profile.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login-username.html b/html/login/login-username.html index 74a362fdb..07096df19 100644 --- a/html/login/login-username.html +++ b/html/login/login-username.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/login.html b/html/login/login.html index 489dae832..779a90026 100644 --- a/html/login/login.html +++ b/html/login/login.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/logout-confirm.html b/html/login/logout-confirm.html index ea1c17711..2a989cd82 100644 --- a/html/login/logout-confirm.html +++ b/html/login/logout-confirm.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/register.html b/html/login/register.html index 2b17cbbfc..8d9268798 100644 --- a/html/login/register.html +++ b/html/login/register.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/select-authenticator.html b/html/login/select-authenticator.html index d0595d80b..150166b97 100644 --- a/html/login/select-authenticator.html +++ b/html/login/select-authenticator.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/webauthn-authenticate.html b/html/login/webauthn-authenticate.html index a4bd6273b..88bb1a7e8 100644 --- a/html/login/webauthn-authenticate.html +++ b/html/login/webauthn-authenticate.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/html/login/webauthn-error.html b/html/login/webauthn-error.html index f5c4468f4..80a27f68a 100644 --- a/html/login/webauthn-error.html +++ b/html/login/webauthn-error.html @@ -1,4 +1,4 @@ - + Sign in to diff --git a/src/test/java/org/keywind/theme/LoginDataModel.java b/src/test/java/org/keywind/theme/LoginDataModel.java index fac09b268..1641d5ded 100644 --- a/src/test/java/org/keywind/theme/LoginDataModel.java +++ b/src/test/java/org/keywind/theme/LoginDataModel.java @@ -78,6 +78,7 @@ private static Map createLocaleModel() { Map locale = new HashMap<>(); locale.put("current", "English"); + locale.put("currentLanguageTag", "en"); locale.put("supported", supported); return locale;