dist/shopify.i18n.js
function translateElement(element, locale) {
    var $element = $(element),
        keyPath = $element.data('translate');

    var translation = getTranslation(keyPath, locale);
    if(translation) {
      $(element).text(translation);
    }
  }
function translateElement(element, locale) {
    var $element = $(element),
        keyPath = $element.data('translate');

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

@param element
@param locale
Translate a specific element to the given locale .