Title: How to use JavaScript get the language
Last modified: May 18, 2018

---

# How to use JavaScript get the language

 *  [sinzero](https://wordpress.org/support/users/sinzero/)
 * (@sinzero)
 * [8 years ago](https://wordpress.org/support/topic/how-to-use-javascript-get-the-language/)
 * Hi There,
 * I have installed Polylaang for many sites and it’s great!
 * But I found an issue in one of my sites which is the products in JavaScript and
   append to a <div>, so I can only get the language in JS file to filter the products,
   unfortunately I cannot find a away to do this.
 * Could you plese guide me how to get current language with JavaScript?
 * Thanks!

The topic ‘How to use JavaScript get the language’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [sinzero](https://wordpress.org/support/users/sinzero/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/how-to-use-javascript-get-the-language/)
 * Status: not resolved