Add i18n and optimise template parsing

This commit is contained in:
Andrew-71 2024-05-03 15:40:40 +03:00
parent a92e6b04b7
commit 6ff3d2e0ee
10 changed files with 100 additions and 35 deletions

View file

@ -2,6 +2,6 @@
<form method="POST">
<h2><label for="text">{{ .Title }}:</label></h2>
<textarea id="text" cols="40" rows="15" name="text">{{ .Content }}</textarea>
<button type="submit">Save</button>
<button type="submit">{{ translatableText "button.save" }}</button>
</form>
{{end}}