Is it possible to specify the Locale in DataFetchingEnvironment using the Accept-Language header? #1649
aerospike2010
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Hi @aerospike2010! If I understand the question correctly, you want to use a header value in your data fetcher. You can use @requestHeader. This will pass along the value of said header to the data fetcher and you can use it however (i.e the Accept-Language header). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to specify the Locale in DataFetchingEnvironment using the Accept-Language header?
I need this for using the graphql-dgs-extended-validation library, where I have to specify the Locale for the error message.
Beta Was this translation helpful? Give feedback.
All reactions