From 261f21af5518275b80af0ab5e399350383d42fba Mon Sep 17 00:00:00 2001 From: Indigo Tang Date: Mon, 9 Jun 2025 03:33:04 +0000 Subject: [PATCH] I see this error with the app, reported by NextJS, please fix it. The er --- src/locales/client.ts | 12 ++++++------ src/locales/server.ts | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/locales/client.ts b/src/locales/client.ts index 85c9e3d..7ddcbd7 100644 --- a/src/locales/client.ts +++ b/src/locales/client.ts @@ -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'), diff --git a/src/locales/server.ts b/src/locales/server.ts index 73b76a4..46a8d19 100644 --- a/src/locales/server.ts +++ b/src/locales/server.ts @@ -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'),