Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 830 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 830 Bytes

bookstore-i18n

Example of usage i18n localization in Go project.

As an example, simple web bookstore application created.

Technological stack

  • 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.

Dependencies

  • go:generate - cmd tool to generate code.
  • gotext - cmd tool to automate translate messages extracting.

Commands

  • Run project.
make run
  • Generate translation message files for specified languges.
make generate
  • Copy translation message files to required format.
make copy

Example

example of response message in fr-ch