-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature Request]: Add a language-switch button in NexT #1680
Comments
hexo.io那个是生成了多语言的网页放在了子目录?感觉这个跟NexT主题没啥关系……是hexo生成的问题吧,hexo一次只能生成一个语言的,主题应该改不了这个吧。 |
现在的hexo版本可以生成多语言目录,已经做到了(我博客现在就是有多语言的文章),就差NexT主题支持多语言切换按钮了 |
The multi-language support user asked for is actually a limitation of |
@Haocen What I mean is that it would be a awesome feature if there was a button for switching languages whenever visitors did that. Not just the The official website of Hexo has already included this feature. However, it is not easy for us who use Actually, I really want to do it by myself. But this is beyond my ability. |
@AlynxZhou that's right, i want to do this, but always forgot. 😄 |
我不确定这个「多国语言切换的按钮」需要多智能? |
多语言切换需要的是可以对于当前页面直接切换,即「跳转到与当前对应的页面」。而非跳转到首页 其实已经有一些人已经实现了这样的功能。我之前收藏的URL,他们的域名都过期了,找不到了。如果找到了我会加进来。 |
我想你说的是这个效果: https://dengcb.com/zh/page/2/ |
我补充一下,Hexo的多语言支持其实是很不完整的:虽然可以添加多个语言,但是各种自带生成器都没考虑这个,如果生成器没有规划好路径,主题就没法处理跳转。所以与其依赖Hexo建立多语言网站,不如建立多个Hexo站点,每个站点处理一种语言,然后将它们设置为不同的subdir,之后添加一个统一首页即可,然后自己修改一下主题添加链接。因为反正不管怎么处理,你都要编写多份不同语言博文,所以这样并没有太大影响。 |
是的,自带生成器没有考虑这个问题,主题要集成多语言,只能暴力改: ppoffice/hexo-theme-minos@f026985 |
Expected behavior (预期行为)
希望可以像https://hexo.io 那样有个可以多国语言切换的按钮
现在支持这种开箱即用的主题好像没有,NexT能否支持呢?
虽然可以在文章里添加链接这种形式,但是过于麻烦了,官方能否支持一下?
English:
I hope Next could have a button like https://hexo.io to help users to switch languages.
Could Next support this since others themes don't have this kind of feature.
It is too inconvenient to add a link inside the articles though users could do it.
NexT Information
Add the ✔ sign before an item which is affected by this behavior.
NexT Scheme:
The text was updated successfully, but these errors were encountered: