wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/i18n.tsx
@@ -2,6 +2,7 @@
import type { FC } from 'react'
import React, { useEffect } from 'react'
import { changeLanguage } from '@/i18n/i18next-config'
import I18NContext from '@/context/i18n'
import type { Locale } from '@/i18n'
import { setLocaleOnClient } from '@/i18n'
@@ -15,7 +16,7 @@
  children,
}) => {
  useEffect(() => {
    setLocaleOnClient(locale, false)
    changeLanguage(locale)
  }, [locale])
  return (