save the provided dictionary accross translations
All checks were successful
Build and publish the docker image / build (push) Successful in 38s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-04-05 10:30:59 +03:00
parent 76db84f69c
commit 15ffbfae4d
3 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,11 @@
{{end}}
<select name="dictionary">
{{range .dictionaries}}
<option value="{{.ShortName}}">{{.Name}}</option>
{{if and ($.dictionary) (eq $.dictionary .ShortName)}}
<option value="{{.ShortName}}" selected>{{.Name}}</option>
{{else}}
<option value="{{.ShortName}}">{{.Name}}</option>
{{end}}
{{end}}
</select>
<button type="submit">Translate</button>