lib/index.js
function(){
    if (this.options.placeholder) return this.options.placeholder;
    if (this.options.language){
      var firstLanguage = this.options.language.split(",")[0];
      var language = subtag.language(firstLanguage);
      var localizedValue = localization.placeholder[language];
      if (localizedValue)  return localizedValue;
    }
    return 'Search';
  }
function(){
    if (this.options.placeholder) return this.options.placeholder;
    if (this.options.language){
      var firstLanguage = this.options.language.split(",")[0];
      var language = subtag.language(firstLanguage);
      var localizedValue = localization.placeholder[language];
      if (localizedValue)  return localizedValue;
    }
    return 'Search';
  }
function ( ) { if ( this . options . placeholder ) return this . options . placeholder ; if ( this . options . language ) { var firstLanguage = this . options . language . split ( "," ) [ 0 ] ; var language = subtag . language ( firstLanguage ) ; var localizedValue = localization . placeholder [ language ] ; if ( localizedValue ) return localizedValue ; } return 'Search' ; }
Get the text to use as the search bar placeholder

If placeholder is provided in options, then use options.placeholder
Otherwise, if language is provided in options, then use the localized string of the first language if available
Otherwise use the default

@returns {String} the value to use as the search bar placeholder
@private
Get the text to use as the search bar placeholder