kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
925 stars 202 forks source link

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

Open giulioambrogi opened 6 years ago

giulioambrogi commented 6 years ago

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