Skip to content

Commit

Permalink
Fix typo in README (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickretallack authored Aug 6, 2024
1 parent 6e20144 commit ad28fea
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 @@ -893,7 +893,7 @@ After the first client-side render, future components rendered calling this hook
> **Note**
> This depends on `react`.
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`.
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 object 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 ad28fea

Please sign in to comment.