1

I'm building an express app which have to manage translation for some fields of my models. (I'm using loopBackjs framework to be exact)

Example: a product needs to have its title and description directly editable in the backend form in multiple languages

Is there a module that does this kind of translation ? If not, what is the best way to do this in mongoDB

Thank you for your help

  • 3
    Can you give a concrete example of what you're trying to achieve? – wdberkeley Feb 04 '15 at 18:03
  • 1
    Sure. I have a loopback product model that have title `{ "name": "product", "plural": "products", "base": "PersistedModel", "idInjection": true, "properties": { "reference": { "type": "string", "required": true, "id": true }, "title": { "type": "string", "required": true } }` I need to translate title and description. I thought to change title and description to object and store different values like this `{ en: 'my product title in english', fr: 'mon titre en français' }` What do you think ? – valentin CABOURDIN Feb 05 '15 at 18:34
  • Then my angular app would have the logic to get the value une the right language. – valentin CABOURDIN Feb 05 '15 at 18:40
  • Yes, that is pretty standard for your problem and works very well for a lot of people. – wdberkeley Feb 05 '15 at 19:05
  • ok so i'll do that. Thanks a lot – valentin CABOURDIN Feb 05 '15 at 22:03

0 Answers0