Title: get current language
Last modified: August 18, 2022

---

# get current language

 *  Resolved [rpmuser](https://wordpress.org/support/users/rpmuser/)
 * (@rpmuser)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/get-current-language/)
 * I want to get onchange ajax event for gtranslate
    I mean how can we detect which
   language is currently selected for each time user change language?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fget-current-language%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/get-current-language/#post-15929030)
 * Hi,
 * You can call GTranslateGetCurrentLang function.
 * Or better you can also modify doGTranslate function to do something extra which
   is responsible for language switching.
 * Thanks! 🙂

Viewing 1 replies (of 1 total)

The topic ‘get current language’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [edo888](https://wordpress.org/support/users/edo888/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/get-current-language/#post-15929030)
 * Status: resolved