Skip to content

Commit

Permalink
Updated language identifier from zh to zh-hans
Browse files Browse the repository at this point in the history
  • Loading branch information
okrc authored and MaLuns committed Aug 18, 2024
1 parent 6c62d08 commit 0fc1302
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion demo/_config.async.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ reward:

creative_commons:
license: by-nc-sa
language: deed.zh
language: deed.zh-hans
post: true
clipboard: true

Expand Down
2 changes: 1 addition & 1 deletion demo/source/downloads/code/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ reward:

creative_commons:
license: by-nc-sa
language: deed.zh
language: deed.zh-hans
post: true
clipboard: true

Expand Down
6 changes: 3 additions & 3 deletions docs/en/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,17 @@ archive:
Set the sharing copyright of your article

> [About the license agreement](https://creativecommons.org/licenses/)
> default uses attribution - Non-commercial - Same way Share [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)。
> default uses attribution - Non-commercial - Same way Share [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans)。

- `license`: set certificate (by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero)
- `language`: set language (deed.zh | deed.en | deed.ja | ...)
- `language`: set language (deed.zh-hans | deed.en | deed.ja | ...)
- `post`: displayed at the end of each article
- `clipboard`: Whether to append copyright information to Clipboard when copying articles (default off)

```yaml
creative_commons:
license: by-nc-sa
language: deed.zh
language: deed.zh-hans
post: false
clipboard: false
```
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ archive:
设置您的文章的分享版权

> [关于许可协议](https://creativecommons.org/licenses/)
> 默认使用 署名-非商业性使用-相同方式共享 4.0,即 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)。
> 默认使用 署名-非商业性使用-相同方式共享 4.0,即 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans)。

- `license`:设置证书 (by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero)
- `language`:设置语言 (deed.zh | deed.en | deed.ja | ...)
- `language`:设置语言 (deed.zh-hans | deed.en | deed.ja | ...)
- `post`:在每篇文章末尾显示
- `clipboard`:是否在复制文章时,在剪贴板中追加版权信息(默认关闭)

Expand All @@ -692,7 +692,7 @@ archive:
```yaml{5} [修改示例]
creative_commons:
license: by-nc-sa
language: deed.zh
language: deed.zh-hans
post: false
clipboard: true
```
Expand Down
4 changes: 2 additions & 2 deletions packages/hexo-theme-async/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ archive:
# Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
# You can set a language value if you prefer a translated version of CC license.
# CC licenses are available in 39 languages, where you can find the specific and correct abbreviation you need.
# Valid values of language: deed.zh, deed.en, deed.ja, etc. | 版权信息
# Valid values of language: deed.zh-hans, deed.en, deed.ja, etc. | 版权信息
creative_commons:
license: by-nc-sa # 设置证书
language: deed.zh # 设置语言
language: deed.zh-hans # 设置语言
post: false # 在每篇文章末尾显示
clipboard: false # 复制时追加

Expand Down

0 comments on commit 0fc1302

Please sign in to comment.