# Multilingual output of same front matter

**URL:** <https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675>\
**Category:** Uncategorized\
**Created:** [December 22, 2017, 12:00pm UTC](https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675 "2017-12-22T12:00:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [December 22, 2017, 12:00pm UTC](https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675/1 "2017-12-22T12:00:24Z")

</div>

Hi all!

Assuming my folder structure looks like this:

```auto
calendar/
    event1.md
    event2.md

```

The files contain only front matter.

Is it possible to generate the content in multiple languages? The headings, such as _place, time , speaker_ would be easily changed using i18n. The front matter content is identical for all languages.

What I would like to avoid is

```auto
calendar/
    event1.md
    event1.de.md
    event2.md
    event2.de.md

```

with de files containing exactly the same content.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [December 22, 2017, 2:14pm UTC](https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675/2 "2017-12-22T14:14:03Z")

</div>

Currently no. But this relates a little to the “content from data” discussion we have from time to time. That will eventually happen and it would be natural to think many languages when we get to that – e.g. having /data/calendar/event1.yaml etc. which could be used to publish pages per language.

---

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [December 22, 2017, 3:20pm UTC](https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675/3 "2017-12-22T15:20:04Z")

</div>

Thank you, bep! That would be an excellent solution. (I was wondering anyway whether it makes sense to use the data folder for an event calendar.)

---

<div class="post-metadata">

**Author:** ![killua99](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/killua99/32/4929_2.png) [@killua99](https://discourse.gohugo.io/u/killua99)\
**Post date:** [January 10, 2018, 11:50pm UTC](https://discourse.gohugo.io/t/multilingual-output-of-same-front-matter/9675/4 "2018-01-10T23:50:01Z")

</div>

I’ve read many post related about it.

But I’m not clear how to solve it with the current release of hugo. What should be the best solution?

data/carousel/en/1.yaml  
data/carousel/en/2.yaml  
data/carousel/es/1.yaml  
data/carousel/es/2.yaml

or

data/carousel/1.en.yaml  
data/carousel/2.en.yaml  
data/carousel/1.es.yaml  
data/carousel/2.es.yaml

Like content does. Feel more natural to keep the same file structure as content does, anyway data is a sort of content.
