code: function translateElement(element, locale) {
      var $element = $(element),
          keyPath = $element.data('translate');
  
      var translation = getTranslation(keyPath, locale);
      if(translation) {
        $(element).text(translation);
      }
    }
docs: Translate a specific element to the given locale.
  
  @param element
  @param locale