code: private void encodeDefaultLanguageJS(FacesContext fc) throws IOException {
  		ResponseWriter rw = fc.getResponseWriter();
  		rw.startElement("script", null);
  		rw.write("$.datepicker.setDefaults($.datepicker.regional['" + fc.getViewRoot().getLocale().getLanguage()
  				+ "']);");
  		rw.endElement("script");
  	}
docs: Generates the default language for the date picker. Originally implemented in
  the HeadRenderer, this code has been moved here to provide better
  compatibility to PrimeFaces. If multiple date pickers are on the page, the
  script is generated redundantly, but this shouldn't do no harm.
  
  @param fc
  The current FacesContext
  @throws IOException