-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Default language #1125
Comments
This happened to me as well, both with the default It should be simple to reproduce. Run Seems kind of hard to believe this has been unresolved for almost a year. |
Agreed, I read in some comment that |
In my case using default |
It turns out that it is (and probably was) still behaving "randomly", after adding a post I'm getting index page in second language even though I have in confg:
I'm getting |
same issue.... random language everytime... so frustrating. |
same...i need chinese,but it give me de....... |
@weqeo set language in hexo _config.yml to zh-cn may solve your issue. |
@NoahDragon thanks,i found that this bug only appearanced when i test in localhost,it's just show everything fine when i deploy it to my domain. |
I still have this issue using the landscape theme and the main _config.yml language does not seem to influence the language being picked. |
the strangest thing is, it's random! I use a gitlab runner on some docker image and for some reason sometimes it renders in french, the first language in my theme other than default. https://vblip.com |
This issue should have been resolved. I did a lot of tests on multiple languages today: |
What about writing a post about how to maintain a Hexo with multiple languages? Such as how to organize the |
Yes, I am thinking about it. In fact, Hexo can do more for multi-language support. For example, to generate the homepage and archive pages separately for different languages, users must use a plugin like https://github.com/Jamling/hexo-generator-i18n, or override the default generator: ppoffice/hexo-theme-minos@f026985 |
Sounds like a great idea! Since Hexo 5.0.0 is on the go, it is now or never. |
instead of |
Yes, if the user sets multiple languages in A few months ago, theme NexT received a feature request about multilingual support: theme-next/hexo-theme-next#1070 |
I created simple hexo site with support multi language for post/pages/archives based on hexo-theme-minos, but ongoing language switcher and meta seo. |
The theme I'm using has 3 files in the languages folder ,
default
,fr-FR
andzh-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 it isn't checked if
languages
isnull
before adding it to the array. Maybe the bug is here.The text was updated successfully, but these errors were encountered: