Title: GraphQL Endlessly Loads when Polylang Language Code Includes a &#8220;-&#8220;
Last modified: May 12, 2023

---

# GraphQL Endlessly Loads when Polylang Language Code Includes a “-“

 *  Resolved [ivanwongtn](https://wordpress.org/support/users/ivanwongtn/)
 * (@ivanwongtn)
 * [3 years ago](https://wordpress.org/support/topic/graphql-endlessly-loads-when-polylang-language-code-includes-a/)
 * GraphQL Endlessly Loads when Polylang Language Code Includes a “-“
 * Hello everyone,
 * I’m encountering an issue with GraphQL because I’m using Polylang with multiple
   languages on WordPress. Specifically, when I generate a language code that contains
   a “-“, GraphQL seems to load indefinitely. My language code is “zh-tw”, and if
   I modify this code to just “zh”, GraphQL operates as expected. However, due to
   frontend requirements and the need for several codes like “zh-tw, zh-hk”, I can’t
   simply alter my language code to fix the issue. Can anyone provide some assistance
   with this?

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

 *  Plugin Author [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * (@jasonbahl)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/graphql-endlessly-loads-when-polylang-language-code-includes-a/#post-17054720)
 * [@ivanwongtn](https://wordpress.org/support/users/ivanwongtn/) in order to help,
   we’ll need full steps to reproduce. 
   What plugins (and versions) do you have 
   active?What steps can someone else take to get into the same situation?
 * What queries or actions do you take to see the error?
 * The more information you provide about reproducing the situation, the better.
 *  Plugin Author [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * (@jasonbahl)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/graphql-endlessly-loads-when-polylang-language-code-includes-a/#post-17454354)
 * Going to close this due to inactivity.

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

The topic ‘GraphQL Endlessly Loads when Polylang Language Code Includes a “-“’ is
closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/graphql-endlessly-loads-when-polylang-language-code-includes-a/#post-17454354)
 * Status: resolved