module.exports = function(multiLang){

  const MoviePoster = require('./movie-poster')(multiLang);

  function selectTemplate(templateName) {
    let template = null;

    switch (templateName) {
      case 'MoviePoster':
        template = new MoviePoster();
        break;
    }

    return template;
  }

  return {
    selectTemplate
  };
}

const MoviePoster = require('./movie-poster');

function selectTemplate(templateName, userLang) {
  let template = null;

  switch (templateName) {
    case 'MoviePoster':
      template = new MoviePoster(userLang);
      break;
  }

  return template;
}

module.exports.selectTemplate = selectTemplate;

Send language to templates class on constructor
Send language to templates class on constructor
