Skip to content

Usage of i18n in Go project. As an example, simple bookstore web application created.

Notifications You must be signed in to change notification settings

ol-ilyassov/bookstore-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Usage of i18n in Go project. As an example, simple bookstore web application created.

Topics

Resources

Stars

Watchers

Forks