hexojs / hexojs/hexo

Default language

Open
#1,125 18 comments 2 reactions 0 assignees View on GitHub
i18n need-verify
Dominant language
TypeScript
Stars
41.8k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

The theme I'm using has 3 files in the languages folder , `default`, `fr-FR` and `zh-Hans`.
I need English (default) as my site language. Leaving the `language` option in `_config.yml` blank doesn't fallback to default (as I suppose is the expected behavior). iissnan/hexo-theme-next#57 has more details.
In the line [lib/theme/index.js#L26](https://github.com/hexojs/hexo/blob/master/lib/theme/index.js#L26) it isn't checked if `languages` is `null` before adding it to the array. Maybe the bug is here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.