Skip to content

Commit

Permalink
Fix typo in docs (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Nov 26, 2023
1 parent 3c1ded8 commit 76fcb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ After the first client-side render, future components rendered calling this hook
> **Note**
> This depends on `react`.
This hooks lets you get the locales returned by the root loader. It follows a simple convention, your root loader return value should be an objet with the key `locales`.
This hook lets you get the locales returned by the root loader. It follows a simple convention, your root loader return value should be an objet with the key `locales`.

You can combine it with `getClientLocal` to get the locales on the root loader and return that. The return value of `useLocales` is a `Locales` type which is `string | string[] | undefined`.

Expand Down

0 comments on commit 76fcb4b

Please sign in to comment.