I see this error with the app, reported by NextJS, please fix it. The er

This commit is contained in:
Indigo Tang 2025-06-09 03:33:04 +00:00
parent 5bcc1bb2e8
commit 261f21af55
2 changed files with 11 additions and 11 deletions

View File

@ -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'),

View File

@ -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'),