Example of usage i18n localization in Go project.
As an example, simple web bookstore application created.
- Usage of Go 1.20 version.
- Usage bmizerany/pat - HTTP server router.
- Usage x/text - repository of text-related packages related to i18n and i10n.
- go:generate - cmd tool to generate code.
- gotext - cmd tool to automate translate messages extracting.
- Run project.
make run
- Generate translation message files for specified languges.
make generate
- Copy translation message files to required format.
make copy