Skip to content

Commit

Permalink
fix(next-international): resolve I18nProviderWrapper interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ubinatus committed Jan 8, 2024
1 parent 9d65805 commit 6fafbe1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import { flattenLocale } from '../../common/flatten-locale';
import { error } from '../../helpers/log';
import type { LocaleContext } from '../../types';

type I18nProviderProps = Omit<I18nProviderWrapperProps, 'fallback'>;
type I18nProviderProps = Omit<I18nProviderWrapperProps, 'fallback'> & {
importLocale: Promise<Record<string, unknown>>;
};

type I18nProviderWrapperProps = {
locale: string;
fallback?: ReactNode;
importLocale: Promise<Record<string, unknown>>;
children: ReactNode;
};

Expand Down

0 comments on commit 6fafbe1

Please sign in to comment.