Skip to content

Commit fb265b1

Browse files
authored
Merge pull request #17 from lingualdev/i18n-check
Set up i18n-check page
2 parents d563e79 + d2d5730 commit fb265b1

30 files changed

Lines changed: 545 additions & 24 deletions

content/blog/automating-your-react-internationalization/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To speed up the process of introducing i18n into an existing codebase we can try
2121

2222
To get a better understanding, let's start with a very basic example:
2323

24-
```ts
24+
```tsx
2525
import React from "react";
2626

2727
export const Basic = () => {
@@ -37,7 +37,7 @@ export const Basic = () => {
3737

3838
We can identify three possible translation keys that can be introduced in the above component. The content inside the `h1` tag would be wrapped within a `t` function (or an equivalent translation function):
3939

40-
```ts
40+
```tsx
4141
<h1>{t("some.key.h1.title", "This is some title")}</h1>
4242
```
4343

@@ -54,7 +54,7 @@ So there are a couple of things that need to be done:
5454

5555
The expected result of a transformation based on the previous example would be:
5656

57-
```ts
57+
```tsx
5858
import React from "react";
5959
import { useTranslation } from "react-i18next";
6060

0 commit comments

Comments
 (0)