rallly/apps/web/declarations/i18next.d.ts
2023-03-01 14:10:06 +00:00

21 lines
512 B
TypeScript

import "react-i18next";
import app from "~/public/locales/en/app.json";
import common from "~/public/locales/en/common.json";
import errors from "~/public/locales/en/errors.json";
import homepage from "~/public/locales/en/homepage.json";
interface I18nNamespaces {
homepage: typeof homepage;
app: typeof app;
common: typeof common;
errors: typeof errors;
}
declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "common";
resources: I18nNamespaces;
returnNull: false;
}
}