We are using Sitecore Headless. We are not getting dictionary values for non en languages from web db which is used for preview site.
We tried to get the dictionary values using Graph QL Query. We were able to get the values for en but we were not able to see the dictionary values for non en language sites.
Graph QL Query
-------------------------------------------
query DictionarySearch(
$rootItemId: String!
$language: String!
$templates: String!
$pageSize: Int = 100
$after: String
) {
search(
where: {
AND: [
{ name: "_path", value: $rootItemId, operator: CONTAINS }
{ name: "_language", value: $language }
{ name: "_templates", value: $templates, operator: CONTAINS }
]
}
first: $pageSize
after: $after
) {
total
pageInfo {
endCursor
hasNext
}
results {
key: field(name: "Key") {
value
}
phrase: field(name: "Phrase") {
value
}
}
}
}