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

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented Dec 10, 2019

Check List

  • Others (Update, fix, translation, etc...)

Noticed this mistake when reviewing #1242

"language-TERRITORY" should be used for existing multilingual/i8n support (theme typically uses this format). "language_TERRITORY" will break it.

"language-TERRITORY" is automatically transformed into "language_TERRITORY" in open_graph() helper.

@curbengh curbengh requested a review from a team December 10, 2019 01:40
@curbengh
Copy link
Contributor Author

curbengh commented Dec 10, 2019

@SukkaW
I've updated #1233

@curbengh
Copy link
Contributor Author

curbengh commented Dec 10, 2019

I just had a look at a few themes, "language-TERRITORY" also break it since most theme uses "en" only.

My understanding is that if "language-TERRITORY" not found in theme, it defaults to default.yml?

At least most of them use "language-TERRITORY" for zh.

@curbengh
Copy link
Contributor Author

I've updated the release note https://github.com/hexojs/hexo/releases/tag/4.1.0.

@curbengh curbengh merged commit 45cc31b into hexojs:master Dec 10, 2019
@curbengh curbengh deleted the language-TERRITORY branch December 10, 2019 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants