Extension

Polylang Integration

Integration with the Polylang plugin, adding fields and filters to select the language when fetching data on a multilingual site.

Gato GraphQL logo
Target Image

Click to watch tutorial video - 02:56

Integration with the Polylang plugin (and also Polylang PRO).

When Polylang is installed in the WordPress site, fetching data using GraphQL would retrieve results for all languages. For instance, field posts might fetch posts in English, Spanish and French.

With the Polylang integration, fields get an extra argument polylangLanguagesBy, to fetch data for some specific language only:

{
  posts(
    filter: {
      polylangLanguagesBy: {
        codes: ["en"]
      }
    }
  ) {
    title
    polylangLanguage {
      code
    }
  }
 
  pages(
    filter: {
      polylangLanguagesBy: {
        locales: ["en_US"]
      }
    }
  ) {
    title
    polylangLanguage {
      locale
    }
  }
 
  customPosts(
    filter: {
      polylangLanguagesBy: {
        predefined: DEFAULT
      }
      customPostTypes: "some-cpt"
    }
  ) {
    title
    polylangLanguage {
      code
    }
  }
}

Get your extension

Purchase the Polylang Integration extension, or a bundle with all the extensions

60% Off!
Personal
$24.99
Polylang Integration
License for 5 domains
Purchase ->
  • 5 domains
  • Support
  • Product updates
Organization
$49.99
Polylang Integration
License for 25 domains
Purchase ->
  • 25 domains
  • Support
  • Product updates
Professional
$74.99
Polylang Integration
License for 100 domains
Purchase ->
  • 100 domains
  • Support
  • Product updates
Agency
$99.99
Polylang Integration
License for 500 domains
Purchase ->
  • 500 domains
  • Support
  • Product updates

The license is for 1 year (renewable every year). Prices are in USD.

30-day money back guarantee

Purchase any extensions with the confidence that you can request a refund

Features illustration
Money back guarantee
Testimonial image

This plugin brings all of the power of GraphQL to WordPress, but adding easier entry points for non-developers

David W. - Agency owner
Discover the power

Try demo now!

Play with Gato GraphQL + all extensions in your own sandbox site, for free