New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Localized descriptions #193
Comments
I think this is a great idea. Perhaps the This needs a champion to write the spec text and propose implementations in at least the GraphQL.js reference implementation. |
I added localization of descriptions to one of my GraphQL implementations by switching the locale context internally in the server depending on request headers and/or a locale that is appended to the API URL. This works with the current GraphQL spec but is very specific to this implementation. I think formalizing this is a great idea! A few random thoughts:
What would that argument look like? Just a simple Schema Definition Language: |
Even though I am not part of the company where this topic was of concern, I'm still quite interested in the development of this feature. To avoid bloating the spec, I guess the most logical thing for now is to pass the locale somehow to the resolver method and use that to render the appropriate localized description. |
We are currently thinking about using GraphQL for our public API.
We are based in Japan, so we'd like to have localized descriptions for each GraphQL object for our local developers who are interested in trying our API.
Is there current support for this, or is it something that could come in the future?
Thanks.
The text was updated successfully, but these errors were encountered: