initial commit
All checks were successful
Build and publish the docker image / build (push) Successful in 58s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-04-05 09:58:58 +03:00
commit 4df8b90dae
26 changed files with 1530 additions and 0 deletions

13
views/search.html Normal file
View File

@ -0,0 +1,13 @@
<form class="search" method="post" action="/translate">
{{if .term}}
<input name="term" type="text" placeholder="Enter a word or a sentence" value="{{.term}}">
{{else}}
<input name="term" type="text" placeholder="Enter a word or a sentence">
{{end}}
<select name="dictionary">
{{range .dictionaries}}
<option value="{{.ShortName}}">{{.Name}}</option>
{{end}}
</select>
<button type="submit">Translate</button>
</form>