Skip to content

Commit

Permalink
Fix default namespace import (#2061)
Browse files Browse the repository at this point in the history
* fix: DefaultNamespace import

* remove semicolons in types.ts
  • Loading branch information
maks-io committed Dec 15, 2022
1 parent de4105e commit fd34d58
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
Trans,
withTranslation,
WithTranslation as ReactI18nextWithTranslation,
DefaultNamespace,
Translation,
} from 'react-i18next'
import {
InitOptions,
i18n as I18NextClient,
TFunction as I18NextTFunction,
TypeOptions,
} from 'i18next'
import { appWithTranslation, i18n } from './'

Expand All @@ -20,17 +20,19 @@ import { appWithTranslation, i18n } from './'
* multiple nextjs versions it's safer to inline and keep it up-to-date.
*/
type NextJsI18NConfig = {
defaultLocale: string;
defaultLocale: string
domains?: {
defaultLocale: string;
domain: string;
http?: true;
locales?: string[];
}[];
localeDetection?: false;
locales: string[];
defaultLocale: string
domain: string
http?: true
locales?: string[]
}[]
localeDetection?: false
locales: string[]
}

type DefaultNamespace = TypeOptions['defaultNS']

export type UserConfig = {
i18n: NextJsI18NConfig
localeExtension?: string
Expand Down

0 comments on commit fd34d58

Please sign in to comment.