Create PO-files
There are many ways to create PO-files. But I decided to make it manually to begin with. Using Google Translate as a first step.
1. Create the file structure on your computer.
go/ └── main/ ├── locale/ │ ├── es.po │ ├── de.po │ ├── it.po │ ├── sv.po │ ├── en.po │ └── ... ├── public/ │ ├── css/ │ ├── js/ │ ├── img/ │ ├── misc/ │ └── html/ ├── main.go ├── go.mod └── go.sum
2. Create each language PO-file like this
(this is the file es.po) msgid "Company" msgstr "Nagocio" msgid "home" msgstr "inicio" msgid "Create PO-files" msgstr "Crea file PO" msgid "Go Code" msgstr "Codice Go" msgid "HTML" msgstr "HTML"