We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8209722 commit 9d6783eCopy full SHA for 9d6783e
app/containers/LanguageProvider/index.tsx
@@ -20,10 +20,10 @@ export interface LanguageProviderProps {
20
}
21
22
export function LanguageProvider({ locale, messages, children }: PropsWithChildren<LanguageProviderProps>) {
23
- const localizedMessages = messages[locale!];
+ const localizedMessages = messages[locale];
24
25
- i18n.load(locale!, localizedMessages);
26
- i18n.activate(locale!);
+ i18n.load(locale, localizedMessages);
+ i18n.activate(locale);
27
28
return <I18nProvider i18n={i18n}>{React.Children.only(children)}</I18nProvider>;
29
0 commit comments