Skip to content

Commit 55f183d

Browse files
authored
fix(usei18n): correct useTranslation type (#328)
1 parent 89c9698 commit 55f183d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/use-i18n/src/usei18n.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const useI18n = (): Context => {
9393
return context
9494
}
9595

96-
export const useTranslation = (namespaces: string[] = [], load: LoadTranslationsFn): Context & { isLoaded: boolean } => {
96+
export const useTranslation = (namespaces: string[] = [], load?: LoadTranslationsFn): Context & { isLoaded: boolean } => {
9797
const context = useContext(I18nContext)
9898
if (context === undefined) {
9999
throw new Error('useTranslation must be used within a I18nProvider')

0 commit comments

Comments
 (0)