I see this error with the app, reported by NextJS, please fix it. The er
This commit is contained in:
parent
5bcc1bb2e8
commit
261f21af55
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
import { createI18nClient } from 'next-international/client';
|
import { createI18nClient } from 'next-international/client';
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
useI18n,
|
useI18n,
|
||||||
useScopedI18n,
|
useScopedI18n,
|
||||||
I18nProviderClient,
|
I18nProviderClient,
|
||||||
useChangeLocale,
|
useChangeLocale,
|
||||||
useCurrentLocale
|
useCurrentLocale,
|
||||||
} = createI18nClient({
|
} = createI18nClient({
|
||||||
en: () => import('./en'),
|
en: () => import('./en'),
|
||||||
'zh-TW': () => import('./zh-TW'),
|
'zh-TW': () => import('./zh-TW'),
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import { createI18nServer } from 'next-international/server';
|
import { createI18nServer } from 'next-international/server';
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
getI18n,
|
getI18n,
|
||||||
getScopedI18n,
|
getScopedI18n,
|
||||||
getCurrentLocale,
|
getCurrentLocale,
|
||||||
getStaticParams
|
getStaticParams,
|
||||||
} = createI18nServer({
|
} = createI18nServer({
|
||||||
en: () => import('./en'),
|
en: () => import('./en'),
|
||||||
'zh-TW': () => import('./zh-TW'),
|
'zh-TW': () => import('./zh-TW'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue