Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Multi-language meta files?

Started by Muut Archive 11 years ago · 1 replies · 344 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 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago