Use correct namespace for i18n types (#3675)

This commit is contained in:
Jon Koops 2022-10-31 13:47:18 +01:00 committed by GitHub
parent 8d7d195b00
commit 508e367670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,9 @@
import "react-i18next"; // https://www.i18next.com/overview/typescript
import "i18next";
import translation from "../public/locales/en/translation.json"; import translation from "../public/locales/en/translation.json";
declare module "react-i18next" { declare module "i18next" {
interface CustomTypeOptions { interface CustomTypeOptions {
defaultNS: "translation"; defaultNS: "translation";
resources: { resources: {