-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query string translations #54
Comments
Let's say the site tagline has been translated from English (default) to Spanish (secondary). To get the Spanish string:
The result:
If I understood right, if you have more secondary languages, you can't get the translations between them directly, leaving out the default one. In this example, trying to get Russian from Spanish will return Spanish again.
|
@maxyudin Query:
|
Unfortunately, I can't reproduce your issue. Are you sure WP GraphQL Polylang is enabled? |
I was having trouble using this feature and finally got it. You have to call the $string registered in pll_register_string function, not the $name. For example, I have this string registered |
Solved the problem I mentioned above. To query multiple strings in only one query you have to give it multiple aliases like this: |
Hello,
is it possible to query string translations via GraphQL with that plugin?
I didn't find a solution yet...
The text was updated successfully, but these errors were encountered: