Skip to content

tcitry/go-i18n-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

操作步骤

  1. 安装goi18n命令
go get -u github.com/nicksnyder/go-i18n/v2/goi18n
  1. 生成英文模板 active.en.toml
goi18n extract
  1. 根据英文生成中文模板
goi18n merge active.*.toml
  1. 根据中文模板进行翻译,最后进行合并
goi18n merge active.*.toml translate.*.toml

(踩了一坑:命名为 active.cn.toml 的话翻译无效)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages