You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
I've created a folder called pages outside _posts. In the root directory.
This way I would expect the files inside pages to be created as folders in the _site folder.
For example:
page/demo.html
Should create:
_site/demo/index.html
_site/es/demo/index.html
Consider that enis the default language and es the secondary one, as defined in the config.ymlfile:
languages: ["es", "en"]
What I found is that both files are created (_site/demo/index.html and _site/es/demo/index.html) but only one of them, the one in the es folder contains the translated text. The other one doesn't even contain any text that is suppose to be translated.
The file page/demo.html contains the following
Demo {% translate pages.test %}
And the _i18n folder contains two files, en.yml and es.yml both containing:
pages:
test: this is a test
What is going on? Why the content of the default language is not being translated at all?
The text was updated successfully, but these errors were encountered:
The only option I found to solve it is creating a dummy default language, then i would get the one I would like as default in the en folder with the translated text.
But this seems to be some kind of bug... the default language doesn't seem to be working at all.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've created a folder called
pages
outside _posts. In the root directory.This way I would expect the files inside
pages
to be created as folders in the_site
folder.For example:
Should create:
Consider that
en
is the default language andes
the secondary one, as defined in theconfig.yml
file:What I found is that both files are created (
_site/demo/index.html
and_site/es/demo/index.html
) but only one of them, the one in thees
folder contains the translated text. The other one doesn't even contain any text that is suppose to be translated.The file
page/demo.html
contains the followingAnd the
_i18n
folder contains two files,en.yml
andes.yml
both containing:What is going on? Why the content of the default language is not being translated at all?
The text was updated successfully, but these errors were encountered: