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';
|
||||
|
||||
export const {
|
||||
useI18n,
|
||||
useScopedI18n,
|
||||
I18nProviderClient,
|
||||
useChangeLocale,
|
||||
useCurrentLocale
|
||||
export const {
|
||||
useI18n,
|
||||
useScopedI18n,
|
||||
I18nProviderClient,
|
||||
useChangeLocale,
|
||||
useCurrentLocale,
|
||||
} = createI18nClient({
|
||||
en: () => import('./en'),
|
||||
'zh-TW': () => import('./zh-TW'),
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { createI18nServer } from 'next-international/server';
|
||||
|
||||
export const {
|
||||
getI18n,
|
||||
getScopedI18n,
|
||||
getCurrentLocale,
|
||||
getStaticParams
|
||||
export const {
|
||||
getI18n,
|
||||
getScopedI18n,
|
||||
getCurrentLocale,
|
||||
getStaticParams,
|
||||
} = createI18nServer({
|
||||
en: () => import('./en'),
|
||||
'zh-TW': () => import('./zh-TW'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue