Add locale
graphql field to collections/global
#1522
adamalfredsson
started this conversation in
Feature Requests & Ideas
Replies: 2 comments
-
I'm also finding this is crucial for dealing with Apollo cache issues, any idea if/when this will get implemented? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @ssyberg did you managed to solve this? I am also looking for a "locale" field for partial translation of website. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR: Add a locale graphql field so that you can determine if the requested resource is of the requested or fallback locale
Consider this localization config:
I would get this:
I generate all paths statically like this:
When I render the links in the navigation, I would like the links to reference the localized page or fallback to the default "en" locale. However, given the information I get in the "Navigation" query data, I'm unable to determine if it's a localized or fallback page. If there was a built-in "locale" field on "Pages" I could query, my life would be so much better, e.g.:
Beta Was this translation helpful? Give feedback.
All reactions