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

Not translating in frontmatter #160

Closed
NebelNidas opened this issue Mar 15, 2020 · 3 comments
Closed

Not translating in frontmatter #160

NebelNidas opened this issue Mar 15, 2020 · 3 comments

Comments

@NebelNidas
Copy link

When I have something like title: about.title in my frontmatter, as described like here, it doesn't take the actual string from my translation file (as expected), it just returns back "about.title".

_i18n
├── de/
└── de.yml
└── en.yml

de.yml:

about:
  title: Über

en.yml:

about:
  title: About
@timseriakov
Copy link

I am also looking for a solution to this issue

@jmfrenzel
Copy link

jmfrenzel commented Jun 18, 2020

@NebelNidas if you are referencing to https://github.com/Cicero-Interactive/Cicero-Interactive-Website/tree/1d3d2944c010f563b381a1550dbe3b0bc0c37f41/_layouts
you might want to add 'liquid' code into your templates ('./_layout'), c.f. https://github.com/kurtsson/jekyll-multiple-languages-plugin#54-i18n-in-templates

e.g. replace {{ page.title }} with {% t page.title %}

@NebelNidas
Copy link
Author

Wow, thanks! I can't believe I've missed this line... 🤦‍♂️

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

3 participants