Can we use a language.yml file in Hexo's source folder for custom translation
I agree and want to create new issue
- [X] Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
- [X] Yes, I was on NexT Documentation Site.
- [X] And yes, I already searched for current issues and this is not help to me.
Expected behavior
Use a language.yml file (such as zh-CN.yml) in site directory /source/_data/ folder for custom translation, just like the existing custom files in site directory source/_data for custom styles and layout. Then we do not need to edit the language files in theme directory /themes/next/language/ for custom translation any more (keep theme folder unchanged).
Actual behavior
Edit the language files in theme directory /themes/next/language/ for custom translation.
Steps to reproduce the behavior
- N/A
- N/A
- N/A
- Link to demo site with this feature: N/A
- Link(s) to source code or any usefull link(s): N/A
NexT Scheme:
- [x] All schemes
- [ ] Muse
- [ ] Mist
- [ ] Pisces
- [ ] Gemini
Thanks for opening this issue, maintainers will get back to you as soon as possible!
Solved with the file languages.yml in jiangtj/blog
Solved with the script in jiangtj/blog
??? This is part of NexT's ability to merge external i18n files, I don't seem to have any modifications.
Solved with the script in jiangtj/blog
??? This is part of NexT's ability to merge external i18n files, I don't seem to have any modifications.
LOL, but it really works for me! 😂😂
Using this file
See also https://github.com/hexojs/hexo/issues/3595
😂 NexT has this feature, but it doesn't seem to be written in the documentation.