From 613f2f1c2449cc066f6575653349c5191e214470 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Fri, 24 May 2024 18:23:41 +0200 Subject: [PATCH] WebUIs: set the lang attribute based on the chosen language Signed-off-by: Nicola Murino --- templates/common/base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/common/base.html b/templates/common/base.html index 515b67a0..14da56d4 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -178,6 +178,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). }; const renderI18n = () => { + document.documentElement.setAttribute('lang', i18next.resolvedLanguage); $('title').text('{{.Branding.Name}} - '+$.t('{{.Title}}')); $('body').localize(); let select2elements = [].slice.call(document.querySelectorAll('[data-control="i18n-select2"]'));