Skip to content

feat: Add support for i18n#1526

Merged
acao merged 1 commit intographql:feat/use-context-hooksfrom
harshithpabbati:i18next
May 16, 2020
Merged

feat: Add support for i18n#1526
acao merged 1 commit intographql:feat/use-context-hooksfrom
harshithpabbati:i18next

Conversation

@harshithpabbati
Copy link
Copy Markdown
Contributor

Screenshot 2020-05-08 at 5 35 59 PM

Thanks @Xambey for your PR.

@harshithpabbati
Copy link
Copy Markdown
Contributor Author

@acao can you review this ?

Comment thread packages/graphiql/package.json Outdated
Comment thread packages/graphiql/src/components/GraphiQL.tsx Outdated
Comment thread packages/graphiql/src/locales/en/Errors.json Outdated
Comment thread packages/graphiql/src/locales/ru/Errors.json Outdated
}
},
"include": ["src"],
"include": ["src", "src/**/*.json"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.json files should always be included if resolveJSONModules is enabled, right?

Comment thread resources/tsconfig.base.cjs.json
@acao
Copy link
Copy Markdown
Member

acao commented May 15, 2020

overall, this is looking fantastic! thanks so much @harshithpabbati. really just that one locale line, and finding a way to get the json files to copy over to dist/esm is needed. maybe we can just use copy yarn command. i would use cp but we are trying to be windows friendly

also, if you'd like to add another translation in any of the languages you speak, feel free!

@harshithpabbati
Copy link
Copy Markdown
Contributor Author

ok cool! I will make the required changes.

@harshithpabbati
Copy link
Copy Markdown
Contributor Author

@acao updated the PR

@acao acao merged commit b6b56fd into graphql:feat/use-context-hooks May 16, 2020
acao pushed a commit that referenced this pull request May 16, 2020
acao pushed a commit that referenced this pull request May 16, 2020
acao pushed a commit that referenced this pull request May 16, 2020
acao pushed a commit that referenced this pull request May 16, 2020
acao pushed a commit that referenced this pull request May 17, 2020
@acao acao added the graphiql label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants