chore: remove unused code (#1989)

This commit is contained in:
crazywoola
2024-01-11 11:08:32 +08:00
committed by GitHub
parent f7939c758f
commit eed5fdd768
12 changed files with 7 additions and 298 deletions

View File

@@ -9,12 +9,10 @@ import { setLocaleOnClient } from '@/i18n/client'
export type II18nProps = {
locale: Locale
dictionary: Record<string, any>
children: React.ReactNode
}
const I18n: FC<II18nProps> = ({
locale,
dictionary,
children,
}) => {
useEffect(() => {
@@ -24,7 +22,7 @@ const I18n: FC<II18nProps> = ({
return (
<I18NContext.Provider value={{
locale,
i18n: dictionary,
i18n: {},
setLocaleOnClient,
}}>
{children}