fix default source lang (closes #41)
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 37m21s
mozhi pipeline / Build and publish artifacts (push) Successful in 1h30m52s

This commit is contained in:
2024-06-27 20:38:29 +05:30
parent 16813c4db5
commit 197949150d
2 changed files with 3 additions and 3 deletions

View File

@@ -21,11 +21,11 @@
<div class="language">
<select name="from" aria-label="Source language" id="sourceLanguage">
{{ range $key, $value := .SourceLanguages }} {{ if eq $.From "" }}
<option value="{{ .Id }}" {{ if eq $.From .Id }}selected{{ end }}>
<option value="{{ .Id }}" {{ if eq .Id $.defaultLang }}selected{{ end }}>
{{ .Name }}
</option>
{{ else }}
<option value="{{ .Id }}" {{ if eq .Id $.defaultLang }}selected{{ end }}>
<option value="{{ .Id }}" {{ if eq $.From .Id }}selected{{ end }}>
{{ .Name }}
</option>
{{ end }} {{ end }}