lib/index.js
function translate(content, langFile) {
  return content.replace(templateRegEx, function (match, capture) {
    return (0, _lodash2.default)(langMap.get(langFile), capture);
  });
}
function translate(content, langFile) {
  return content.replace(templateRegEx, function (match, capture) {
    return (0, _lodash2.default)(langMap.get(langFile), capture);
  });
}
function translate ( content , langFile ) { return content . replace ( templateRegEx , function ( match , capture ) { return ( 0 , _lodash2 . default ) ( langMap . get ( langFile ) , capture ) ; } ) ; }
Pure function to translate a view template file
@param  {String} content  The file content
@param  {String} langFile The file's path
@return {String}          The file content, translated
Pure function to translate a view template file