Skip to content

Commit

Permalink
chore: README typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MiracleUFO committed Sep 29, 2023
1 parent 10d7369 commit 3317598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ or with yarn

### To translate whole component:
```jsx
import Translator from 'react-g-translate';
import Translator from 'react-g-translator';

return (
<Translator from='en' to='es'>
Expand All @@ -33,7 +33,7 @@ return (

### To translate specific text inline:
```jsx
import { Translate } from 'react-g-translate';
import { Translate } from 'react-g-translator';

return (
<div>
Expand All @@ -47,7 +47,7 @@ return (

### To get translation of text directly:
```jsx
import { getTranslation } from 'react-g-translate';
import { getTranslation } from 'react-g-translator';

const helloInIgbo = await getTranslation('Hello', 'en', 'ig');

Expand Down

0 comments on commit 3317598

Please sign in to comment.