Skip to content

Commit f3ca6f1

Browse files
committed
update README.md
Signed-off-by: Dmitriy Nevzorov <[email protected]>
1 parent 675dbc9 commit f3ca6f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const Header = ({siteTitle}) => {
189189

190190
## API
191191

192-
### `Link` component
192+
### `Link`
193193

194194
`Link` component is identical to [Gatsby Link component](https://www.gatsbyjs.org/docs/gatsby-link/) except that you can provide additional `language` prop to create a link to a page with different language
195195

@@ -203,7 +203,7 @@ const SpanishAboutLink = () => (
203203
);
204204
```
205205

206-
### `I18nextContext` react context
206+
### `I18nextContext`
207207

208208
Use this react context to access language information about the page
209209

@@ -221,14 +221,14 @@ Content of the context object
221221
| defaultLanguage | string | default language provided in plugin options |
222222
| originalPath | string | page path in default language |
223223

224-
### `useI18next` react hook
224+
### `useI18next`
225225

226-
This hook returns `I18nextContext`, object and additional helper functions
226+
This react hook returns `I18nextContext`, object and additional helper functions
227227

228228
| Function | Description |
229229
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
230230
| navigate | This is a wrapper around [Gatsby navigate helper function](https://www.gatsbyjs.org/docs/gatsby-link/#how-to-use-the-navigate-helper-function) that will navigate to the page in selected language |
231-
| changeLanguage | A helper function to change language. The first parameter is a language code. Signature: `(language: string, to?: string, options?: NavigateOptions) => Promise<void>'. You can pass additional parameters to navigate to different page. |
231+
| changeLanguage | A helper function to change language. The first parameter is a language code. Signature: `(language: string, to?: string, options?: NavigateOptions) => Promise<void>`. You can pass additional parameters to navigate to different page. |
232232

233233
`useI18next` also exposes the output of react i18next [`useTranslation`](https://react.i18next.com/latest/usetranslation-hook) so you can use
234234

0 commit comments

Comments
 (0)