mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
fix default source lang (closes #41)
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user