ui: correct html lang tag

set according to the language picked.
This commit is contained in:
Harvey Tindall
2025-12-07 19:31:52 +00:00
parent 0b8376a19e
commit b5e348ad2b
12 changed files with 38 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
<title>404 - jfa-go</title>
{{ template "header.html" . }}

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
{{ template "syntaxhighlighting.html" . }}
<script>

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ .shortLang }}">
<head>
<!--- This CSS is inlined so we should keep this here! -->
<link inline rel="stylesheet" type="text/css" href="web/css/v0.6.0bundle.css">

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
{{ template "header.html" . }}
<title>{{ .strings.successHeader }} - jfa-go</title>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
{{ template "header.html" . }}
{{ if .passwordReset }}

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
{{ template "header.html" . }}
<title>Invalid Code - jfa-go</title>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="{{ .cssClass }}">
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
<head>
{{ template "header.html" . }}
<title>{{ .strings.passwordReset }} - jfa-go</title>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="light">
<html lang="{{ .shortLang }}" class="light">
<head>
{{ template "header.html" . }}
<title>{{ .lang.Strings.pageTitle }}</title>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="light">
<html lang="{{ .shortLang }}" class="light">
<head>
<script>
window.langFile = JSON.parse({{ .language }});