hexojs / hexojs/site

About :i18n_dir and multi language site

Open
#1,217 0 comments 2 reactions 0 assignees View on GitHub
documentation
Dominant language
Stylus
Stars
719
Forks
1.3k
Avg merge
2d 1h
Merged PRs (30d)
9

Description

https://hexo.io/docs/internationalization#Path

> ```yaml
> /index.html => en
> /archives/index.html => en
> /zh-tw/index.html => zh-tw
> ```

We should mention that `en` here is `config.language` or `config.language[0]`(If `Array` is used at `config.language`). Also `zh-tw` things will only be considered as language when the `zh-tw.yml` is available at theme's `language` folder.

BTW, it is really hard to create a multi language site using Hexo.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the internationalization documentation at the Path section and review the examples using config.language and the theme's language folder. Clarify that en comes from config.language or config.language[0], and that zh-tw is recognized only when zh-tw.yml exists in the theme language folder.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.