Web UIs: remove duplication of supported languages

Fixes #1660

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-06-15 19:35:23 +02:00
parent d650defa08
commit 39cf9f6943
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -193,7 +193,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
.use(i18nextBrowserLanguageDetector) .use(i18nextBrowserLanguageDetector)
.init({ .init({
debug: false, debug: false,
supportedLngs: ["en", "it"], supportedLngs: Object.keys(lngs),
fallbackLng: 'en', fallbackLng: 'en',
load: 'languageOnly', load: 'languageOnly',
backend: { backend: {
@ -795,12 +795,12 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title></title> <title></title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="" /> <meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" /> <link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
{{- template "fonts" . }} {{- template "fonts" . }}
{{- block "extra_css" .}}{{- end}} {{- block "extra_css" .}}{{- end}}
{{- range .Branding.DefaultCSS}} {{- range .Branding.DefaultCSS}}