chore: remove unused code (#1989)

This commit is contained in:
crazywoola 2024-01-11 11:08:32 +08:00 • committed by GitHub
commit eed5fdd768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}