chore: remove next-i18next (#1242)
This commit is contained in:
1 parent
3afecc8ee7
commit
5cda4a5ebc
4 files changed
+193
-93
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import i18next, { i18n, Resource } from 'i18next';
|
||||
import { appWithTranslation } from 'next-i18next';
|
||||
import {
|
||||
I18nextProvider,
|
||||
initReactI18next,
|
||||
@@ -38,7 +37,7 @@ declare module 'react-i18next' {
|
||||
|
||||
const STORAGE_KEY = 'i18n_lng';
|
||||
|
||||
export { appWithTranslation, I18nextProvider, LOCALES, Trans, useTranslation };
|
||||
export { I18nextProvider, LOCALES, Trans, useTranslation };
|
||||
|
||||
const resources = LOCALES.reduce<Resource>(
|
||||
(acc, { tag, res }) => ({ ...acc, [tag]: { translation: res } }),
|
||||
|
||||
Reference in new issue
Block a user