Skip to content

Commit 7a1739a

Browse files
committed
improve README.md
Signed-off-by: Dmitriy Nevzorov <jimmy.lugat@gmail.com>
1 parent 96f08e8 commit 7a1739a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const SpanishAboutLink = () => (
265265

266266
Use this react context to access language information about the page
267267

268-
```
268+
```javascript
269269
const context = React.useContext(I18nextContext);
270270
```
271271

@@ -302,7 +302,7 @@ const {t} = useI18next();
302302

303303
You can use `language` variable in gatsby page queries to fetch additional data for each language. For example if you're using [gatsby-transformer-json](https://www.gatsbyjs.org/packages/gatsby-transformer-json/) your query might look like:
304304

305-
```typescript
305+
```javascript
306306
export const query = graphql`
307307
query($language: String!) {
308308
dataJson(language: {eq: $language}) {

0 commit comments

Comments
 (0)