drupal-graphql / drupal-graphql/graphql

User Interface Translation, Twig and GraphQL

Open
#1,020 0 comments 0 reactions 0 assignees View on GitHub
3.x question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.