Skip to content

Commit

Permalink
fix(next-international): resolve I18nProviderWrapper interface (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubinatus committed Jan 9, 2024
1 parent 9d65805 commit c35bc2a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import type { BaseLocale, ImportedLocales } from 'international-types';
import { notFound } from 'next/navigation';
import type { Context, ReactNode } from 'react';
import React, { Suspense, use, useMemo } from 'react';
import React, { Suspense, useMemo } from 'react';
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 c35bc2a

Please sign in to comment.