why hexo blog changes the language automacitally

Almost whenever I check my hexo github blog no matter local or github,
the language kept being changed like an alive creature.

One time that was in English, next time it was in Spanish, next time it was in
French, and then it was in Indonesian.

yeah it was so crazy

So I checked hexo‘s document.
-> https://hexo.io/docs/internationalization.html

And I found the reason and how to SET your blog’s language.

hexo says that if we set i18n_dir as lang, they will detect the language within the first segment of URL. For example:

1
2
3
/index.html => en
/archives/index.html => en
/zh-tw/index.html => zh-tw

The string will only be served as a language when the language file exists. So archives in /archives/index.html (example 2) will not get served as a language.

But it was odd. When my blog shows French, request headers message’s language part setting was right(in Korean or English).

I don’t know why the other languages appeared but after setting languageoption
as en in _config.yml and then deleted, it became ok.

Until now I think it’s about hexo-i18n but I don’t understand why;;
If this blog’s language is weird then notice me. In case I will see again,
I will try to find the reason again

Comments