drupal-graphql / drupal-graphql/graphql
User Interface Translation, Twig and GraphQL
- Dominant language
- PHP
- Stars
- 287
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
Hi. I’m finding that user interface translations (/admin/config/regional/translate) aren’t being returned by GraphQL. For example, I have the following query:
```
{
route(path: "/cn/commercial") {
... on EntityCanonicalUrl {
content: entity {
entityTranslation(language: ZH_HANS) {
... on Node {
rendered: entityRendered
}
}
}
}
}
}
```
Entity rendered returns the Chinese Translation as expected, but does not return the translated content set in /admin/config/regional/translate which starts with the “|t” filter in the Twig file.
At the moment, the content returned by GraphQL is the original text written into the Twig file.
Is this achievable with GraphQL? Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.