Open alibabagogogo opened 1 year ago
Hi @alibabagogogo, great you enjoyed the theme. Translations should work automatically after editing the translation variables and build the site.
So, if you cloned the repo, make sure you created the translations.yml
file inside src/yml
folder. If you're using the gem
, add the content from here in your _config.yml
file.
The site should be translated on your next build after doing that. Let me know if you have any issues.
Hi @thiagorossener , thanks a lot for your immediate feedback.
I did 'get clone' from your repo at the very beginning and I forked it as well. There is a blank translations.yml file in src/yml folder. I added your samples with some changes on values.
I build the site by gulp and by bundle exec jekyll serve. Neither way works in translation. The values of site.yml etc. will be updated in _config.yml after rebuild, but I cannot tell there is anything changed related to translations.yml.
Sorry I'm new to the coding part, so if I describe the process as a layman, yeah, I am the layman.. .
If my understanding is correct, every time I rebuild the project, the *.yml in src/yml will be 'gethered' into _config.yml and it will be used as 'rules' to bulid pages in _site. If this is correct, where does the translation mappings stores after rebuilding?
say
Thanks a lot for helping!
Hi, thanks a lot for sharing this theme. How to enable the translation between English and translated language? e.g. Chinese. I've added the content to the translations.yml already, but nothing is changed.
Thanks in advance.