Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

site.translations is empty object when no translation reference (e.g. {% t elem.md %}) is included in the page #106

Open
giulioambrogi opened this issue Oct 1, 2017 · 0 comments

Comments

@giulioambrogi
Copy link

giulioambrogi commented Oct 1, 2017

Workflow:
1- Create new project with jekyll new mysite
2- Add plugin following the docs and add 2 languages en and it
3-In the index.html page just add {{site.translations.size}} to display the languages supported
-> Result: 0 - no languages supported?
-> Expected: 2

4- Create a translation file /_i18n/en/test.md and reference it in index.html as {% t test.md %} and fill it with some text
-> Now {{site.translations.size}} = 1
5- Remove the text from test.md but leave it there
-> Now {{site.translations.size}} is back to 0
6- same happens with the other languages

@giulioambrogi giulioambrogi changed the title If no translation ({% t elem.md %}) is included in the page, then site.translations is empty object site.translations is empty object when no translation reference (e.g. {% t elem.md %}) is included in the page Oct 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant