I am having an Web app made with Ember.js and node.js that has an option to swtich between 3 languages. The words are stored in json files. As of now i am using synchronous ajax call to fetch the data for all the pages(around 7 or 8 calls). The function
function translate(iso,coll)
{
    var x = jQuery.parseJSON(
         jQuery.ajax({
            url: window.location.origin+'/translate?iso='+iso+'&coll='+coll,
            async: false,
            dataType: 'json',
             success : function(){
             }
         }).responseText
    );
    console.log(x);
    return x;
}; 
     
    