Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

news(hexo 4.1): 'language-TERRITORY' should be used for multilingual support #1243

Merged
merged 3 commits into from
Dec 10, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions source/_posts/2019-12-09-hexo-4-1-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ title: Hexo 4.1.0 Released
### Breaking changes
- Requires Node 8.10 or above [#3778]
* Node 8 is going to be deprecated in [less than a month](https://github.com/nodejs/Release/blob/master/README.md), we strongly urge to upgrade to Node 10 or newer
- `og:locale` [Open Graph](https://ogp.me/) tag won't be inserted if `language:` (in config, front-matter of post/page or [`open_graph()`](/docs/helpers#open-graph) helper) is not in `language_TERRITORY` format, otherwise it assumes `en_US` value [#3808]
- `og:locale` [Open Graph](https://ogp.me/) tag won't be inserted if `language:` (in config, front-matter of post/page or [`open_graph()`](/docs/helpers#open-graph) helper) is not in `language-TERRITORY` format [#3808]
* `en` is invalid
* `en_GB` is valid
* Not all locales are supported (e.g. `en_AU` is not valid), see [official list](https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/)
* `en-GB` is valid
* Not all locales are supported (e.g. `en-AU` is not valid), see [official list](https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/)
* Dash (e.g. "en-GB") must be used for multilingual support, dash is automatically transformed to underscore (e.g. "en_GB") in `og:locale`
* Verify the corresponding file exists in the `languages/` folder of installed theme before changing the `language:` config

### Features
- Support adding hour and minute to post permalink [#3629]
Expand Down