From 76fcb4bc706976a485e32a3e26b93404d49b3dc4 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 26 Nov 2023 14:40:28 +1300 Subject: [PATCH] Fix typo in docs (#284) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f0a9c3..51f99e6 100644 --- a/README.md +++ b/README.md @@ -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`.