title: Multilingual data modeling on MongoDB
body: <p>I am trying to model my objects on MonogoDB and not sure how to proceed. I am building a Product catalog that will be: </p>
  
  <ul>
  <li>No frequent changes to product catalog. A bulk operation may be done weekly / fortnight.  </li>
  <li>Product information is in multiple languages ( English, Spanish , French ) new language may be added anytime.</li>
  </ul>
  
  <p>Here is what I am trying to do: I need to model my product catalog to capture the multilingual functionality. Assume I have:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>product : { 
   _id:xxx,
   sku:"23456",
   name:"Name",
   description: "Product details", 
   tags:["x1","x2"]}... 
  }
  </code></pre>
  
  <p>Surely, name,description, tags and possible images will change according to language. So, how do I model it?</p>
  
  <ol>
  <li>I can have a seperate collection for each language eg: enProducts,esProducts etc</li>
  <li><p>Have JSON representation in the product itself with the individual languages like:</p>
  
  <pre class="lang-js prettyprint-override"><code>product :{
     id: xxx,
     en: {
           name: "Name",
           description: "product details.."
         },
     es: {
           name: "Name",
           description: "product details.."
         },
     ...   
  }
  </code></pre></li>
  </ol>
  
  <p><br>
  Or is there any other solution? Need help of MongoDB modeling experts here :)</p>