Title: Default language code
Last modified: April 19, 2024

---

# Default language code

 *  Resolved [penniepl](https://wordpress.org/support/users/penniepl/)
 * (@penniepl)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/)
 * Hi, I am trying to solve an issue. I would like to have our site automatically
   translated from Finnish to English as default.
   I purchased the paid version of
   GTranslate, but there was no answer for that. Then I got quite poor help from
   plugin customer service and finally some code to add but no instruction where
   to exactly place it… So help.
 * <script>
 * if (!localStorage.getItem(“ChangeLanguageFirstTime”)) { document.cookie = ‘googtrans
   =/fi/en’; localStorage.setItem(“ChangeLanguageFirstTime”, true);} </script>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-language-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/#post-17707859)
 * Hi,
 * We do not support that and we do not recommend that. GTranslate is not designed
   to be used like that.
 * The code simply mimics prior language selection. It needs to go into your HTML
   body, good place is the footer. If you do not know what you are doing you better
   consult a developer.
 * Thanks! 🙂
 *  Thread Starter [penniepl](https://wordpress.org/support/users/penniepl/)
 * (@penniepl)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/#post-17711524)
 * Thanks. I actually know what I am doing, but placed code did not work. Funny 
   thing, that the code is from your GTranslate support agent, who gave it (twice)
   and said to ask instructions from here. 
   Maybe you should inform them not to 
   share that code if it is not good and figure out solution how to define easily
   default language… 🙂 By Google, I am not the only one who is asking it. I was
   ready to have a paid subscription but no answer from that either. 🙁
 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/#post-17713628)
 * Hi,
 * When I open your website I see it in English.
 * Thanks! 🙂
 *  Thread Starter [penniepl](https://wordpress.org/support/users/penniepl/)
 * (@penniepl)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/#post-17714379)
 * Thanks, it wasn’t showing on Edge. Chrome & Safari ok. Cleared cache and cookies
   from Edge and now it’s working, my bad.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default language code’ is closed to new replies.

 * ![](https://ps.w.org/gtranslate/assets/icon-256x256.png?rev=2595917)
 * [Translate Wordpress with GTranslate](https://wordpress.org/plugins/gtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/gtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtranslate/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [penniepl](https://wordpress.org/support/users/penniepl/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/default-language-code/#post-17714379)
 * Status: resolved