mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
Add remarks
This commit is contained in:
parent
1ef540a67c
commit
5e95326eb7
@ -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` 中设置
|
||||
|
@ -63,7 +63,7 @@ carbon.SetDefault(carbon.Default{
|
||||
Layout: carbon.DateTimeLayout,
|
||||
Timezone: carbon.PRC,
|
||||
WeekStartsAt: carbon.Sunday,
|
||||
Locale: "jp",
|
||||
Locale: "jp", // 値の範囲:langディレクトリ下の翻訳ファイル名、ファイル接尾辞を含まない
|
||||
})
|
||||
```
|
||||
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user