Extension

Polylang

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

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
    }
  }
}

Purchase extension

Personal
$62.49
(one-off)
Polylang
License for 5 domains
Purchase ->
  • 5 domains
  • Support (forever)
  • Product updates (forever)
Organization
$124.99
(one-off)
Polylang
License for 25 domains
Purchase ->
  • 25 domains
  • Support (forever)
  • Product updates (forever)
Professional
$187.49
(one-off)
Polylang
License for 100 domains
Purchase ->
  • 100 domains
  • Support (forever)
  • Product updates (forever)
Agency
$249.99
(one-off)
Polylang
License for 500 domains
Purchase ->
  • 500 domains
  • Support (forever)
  • Product updates (forever)

The license never expires. Prices are in USD.

30-day money back guarantee

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

Features illustration
Money back guarantee

Read our refund policy

Testimonial image

You have built an incredibly well-thought out and powerful tool—plus the support material is stellar.

Quint R. - Developer

Subscribe to our newsletter

Stay in the loop on all new things concerning Gato GraphQL.