Add remarks

This commit is contained in:
Peleus 2024-10-12 01:38:13 +08:00
parent 1ef540a67c
commit 5e95326eb7
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ carbon.SetDefault(carbon.Default{
Layout: carbon.DateTimeLayout,
Timezone: carbon.PRC,
WeekStartsAt: carbon.Sunday,
Locale: "zh-CN",
Locale: "zh-CN", // 取值范围lang 目录下翻译文件名,不包含文件后缀
})
```
> 建议在入口文件如 `main.go` 中设置

View File

@ -63,7 +63,7 @@ carbon.SetDefault(carbon.Default{
Layout: carbon.DateTimeLayout,
Timezone: carbon.PRC,
WeekStartsAt: carbon.Sunday,
Locale: "jp",
Locale: "jp", // 値の範囲langディレクトリ下の翻訳ファイル名、ファイル接尾辞を含まない
})
```

View File

@ -62,7 +62,7 @@ carbon.SetDefault(carbon.Default{
Layout: carbon.DateTimeLayout,
Timezone: carbon.Local,
WeekStartsAt: carbon.Sunday,
Locale: "en",
Locale: "en", // Value range: Translate file name in the lang directory, excluding file suffix
})
```
> Suggest setting in the entry file such as `main.go`