Skip to content

Commit

Permalink
fix(next-international): fallbackLocale with dot-notation TS error (#174
Browse files Browse the repository at this point in the history
)
  • Loading branch information
QuiiBz committed Sep 15, 2023
1 parent ff595b2 commit 664db84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { flattenLocale } from '../../common/flatten-locale';

type I18nProviderProps = {
fallback?: ReactElement | null;
fallbackLocale?: BaseLocale;
fallbackLocale?: Record<string, unknown>;
children: ReactNode;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/next-international/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type I18nServerConfig = {
/**
* A locale to use if some keys aren't translated, to fallback to this locale instead of showing the translation key.
*/
fallbackLocale?: BaseLocale;
fallbackLocale?: Record<string, unknown>;
};

export type I18nMiddlewareConfig<Locales extends readonly string[]> = {
Expand Down

0 comments on commit 664db84

Please sign in to comment.