This is a repo with demo code

For this article: https://medium.com/@lirancohen_76284/internationalize-your-graphql-2c2eaeb37d49

Usage

  1. yarn start to start the server
  2. go to: http://www.localhost:4000/graphql to enter the playground.
  3. set up a cookie named lang ... with dev tools or with chrome extension called cookie monster
  4. change the lang cookie value between en and es and see the greeting field value changes.
  5. Be sure to accordinly change your playground settings as explained in this issue: graphql/graphql-playground#748 (comment)