How to handle i18n in Go?

前端 未结 3 1328
别跟我提以往
别跟我提以往 2021-02-06 23:47

I searched on web but I didn\'t find anything related to i18n and Go.

I wish to use Go for develop web sites. What is the best way to handle internationalization?

3条回答
  •  旧巷少年郎
    2021-02-07 00:46

    go-i18n has some nice features:

    • Implements CLDR plural rules.
    • Uses text/template for strings with variables.
    • Translation files are simple JSON.

提交回复
热议问题