Skip to content

Commit 4204792

Browse files
authored
Merge pull request astaxie#953 from zhilijiqi/patch-7
Update 10.3.md
2 parents 9d293af + 090e5fc commit 4204792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh/10.3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ fmt.Println(Tr.Translate("submit"))
3838
//输出Submit
3939
Tr.SetLocale("zh")
4040
fmt.Println(Tr.Translate("submit"))
41-
//输出“递交
41+
//输出“提交
4242
```
4343
## 自动加载本地包
4444
上面我们介绍了如何自动加载自定义语言包,其实go-i18n库已经预加载了很多默认的格式信息,例如时间格式、货币格式,用户可以在自定义配置时改写这些默认配置,请看下面的处理过程:
4545
```Go
4646

4747
//加载默认配置文件,这些文件都放在go-i18n/locales下面
4848

49-
//文件命名zh.json、en-json、en-US.json等,可以不断的扩展支持更多的语言
49+
//文件命名zh.json、en.json、en-US.json等,可以不断的扩展支持更多的语言
5050

5151
func (il *IL) loadDefaultTranslations(dirPath string) error {
5252
dir, err := os.Open(dirPath)

0 commit comments

Comments
 (0)