Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Multi-language meta files?

Started by Muut Archive 11 years ago · 1 replies · 418 views
11 years ago

Is there a good way to use meta files for different languages?
I'm thinking about localized alt-texts and captions stored in that file.

I'm looking for a solution like this because I would just drop pictures + meta files in such a folder and the template file will generate the html.

I already tried to implement two sections in a meta file and using a twig request for the active language. That works so far but not if the cache is enabled.

YAML

de:
  alt_text: german alt-text
  caption: german title
en:
  alt_text: englisch alt-text
  caption: english title
---

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2287 9 years ago
Archive · by Muut Archive, 9 years ago
2 1500 9 years ago
Archive · by Muut Archive, 9 years ago
2 4750 9 years ago
Archive · by Muut Archive, 9 years ago
1 3565 9 years ago
Archive · by Muut Archive, 9 years ago
3 1625 9 years ago