WebUIs: set the lang attribute based on the chosen language
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
525f33a07a
commit
613f2f1c24
1 changed files with 1 additions and 0 deletions
|
@ -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"]'));
|
||||
|
|
Loading…
Reference in a new issue