Title: Control language displayed via JavaScript
Last modified: August 31, 2020

---

# Control language displayed via JavaScript

 *  Resolved [corrie67](https://wordpress.org/support/users/corrie67/)
 * (@corrie67)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/control-language-displayed-via-javascript/)
 * Hello and greetings,
 * I have the free version of TRP installed, with German as default and English 
   as second language. The site will sit in an iframe and the parent site has its
   own language switcher – meaning I actually need to hide the trp switcher and 
   fetch the required language via the parent window’s URL.
 * That works: When I call up a page of my site, I can identify the language chosen
   in the parent page via a small JavaScript. Now is there a way to set the iframe’s
   page’s language via JavaScript?
 * i.e. is there a “hook” somewhere in the Plugin that I can use to set it to, say,
   English?
 * Preferrably with JavaScript and without having to rewrite the URL (to insert 
   the “en” bit).
 * Many thanks in advance,
 * Corrie
 * PS: Sorry I can’t show a link as it’s a development site I’m not allowed to make
   public yet.

The topic ‘Control language displayed via JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [corrie67](https://wordpress.org/support/users/corrie67/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/control-language-displayed-via-javascript/)
 * Status: resolved