# Approaches to multilingual content

**URL:** <https://discuss.emberjs.com/t/approaches-to-multilingual-content/3312>\
**Category:** Design\
**Created:** [November 11, 2013, 2:07pm UTC](https://discuss.emberjs.com/t/approaches-to-multilingual-content/3312 "2013-11-11T14:07:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickard2](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rickard2/32/14404_2.png) [@rickard2](https://discuss.emberjs.com/u/rickard2)\
**Post date:** [November 11, 2013, 2:07pm UTC](https://discuss.emberjs.com/t/approaches-to-multilingual-content/3312/1 "2013-11-11T14:07:33Z")

</div>

I’m in the process of designing an ember app which should support multilingual content. The back office is all in one language and can add/edit projects with multiple languages.

The only thing I’ve found so far is ember-i18n which takes care of static content, but what about dynamic content?

A couple of approaches have come to mind:

**Separate api endpoints or some kind of header will indicate to the server which language to return**

Pros:

- Easy to implement in our back end
- Less data down the wire

**Each ember model will have an array of all languages and their content**

Pros:

- Easy editing of multiple languages
- No page reload required to switch language in front end

Is there some project for this already? Or anyone have any experience with multilingual content?

---

<div class="post-metadata">

**Author:** ![herom](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/herom/32/14642_2.png) [@herom](https://discuss.emberjs.com/u/herom)\
**Post date:** [November 11, 2013, 2:40pm UTC](https://discuss.emberjs.com/t/approaches-to-multilingual-content/3312/2 "2013-11-11T14:40:44Z")

</div>

we have a quite large application and therefore we’re preprocessing our `Handlebars` templates at the backend on request. we wrote our own preprocessor with translating capabilities which pulls in the right language from `ResourceBundle` files and delivers the template in the requested language… don’t know if this is an option for you as this requires the application to have **synchronous** template loading…

---

<div class="post-metadata">

**Author:** ![Dracks](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dracks/32/10714_2.png) [@Dracks](https://discuss.emberjs.com/u/Dracks)\
**Post date:** [April 16, 2015, 11:04am UTC](https://discuss.emberjs.com/t/approaches-to-multilingual-content/3312/3 "2015-04-16T11:04:42Z")

</div>

I need to manage a multilingual content in my application, did you made it? How do you made?

Usually (in other cases) I use a json like the next to manage multi-lingual content: {“template”: { “name”:{ “es”:“Prueba 1”, “en”: “Test 1” },…}

As I understand your second aproach, means every localized text, should be an object, and If I understand correctly ember-data, every object requires and ID, it means every localized text on the application should have an ID.

Thanks!
