|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
import ChartView from './chartView'
|
|
|
import CardView from './cardView'
|
|
|
import { getLocaleOnServer } from '@/i18n/server'
|
|
|
-import { useTranslation } from '@/i18n/i18next-serverside-config'
|
|
|
+import { useTranslation as translate } from '@/i18n/i18next-serverside-config'
|
|
|
import ApikeyInfoPanel from '@/app/components/app/overview/apikey-info-panel'
|
|
|
|
|
|
export type IDevelopProps = {
|
|
@@ -13,7 +13,11 @@ const Overview = async ({
|
|
|
params: { appId },
|
|
|
}: IDevelopProps) => {
|
|
|
const locale = getLocaleOnServer()
|
|
|
- const { t } = await useTranslation(locale, 'app-overview')
|
|
|
+ /*
|
|
|
+ rename useTranslation to avoid lint error
|
|
|
+ please check: https://github.com/i18next/next-13-app-dir-i18next-example/issues/24
|
|
|
+ */
|
|
|
+ const { t } = await translate(locale, 'app-overview')
|
|
|
return (
|
|
|
<div className="h-full px-16 py-6 overflow-scroll">
|
|
|
<ApikeyInfoPanel />
|