google-translate.min.js 698 B

12345
  1. /* Do not modify this file directly. It is compiled from other files. */
  2. /*global google:true*/
  3. /*global _wp_google_translate_widget:true*/
  4. /*exported googleTranslateElementInit*/
  5. function googleTranslateElementInit(){var e,a="en",t=/[?&#]lang=([a-zA-Z\-_]+)/;"object"==typeof _wp_google_translate_widget&&"string"==typeof _wp_google_translate_widget.lang&&(a=_wp_google_translate_widget.lang),e=window.location.href.match(t),e&&(window.location.href=window.location.href.replace(t,"").replace(/#googtrans\([a-zA-Z\-_|]+\)/,"")+"#googtrans("+a+"|"+e[1]+")"),new google.translate.TranslateElement({pageLanguage:a,layout:_wp_google_translate_widget.layout,autoDisplay:!1},"google_translate_element")}