rallly/apps/landing/declarations/i18next.d.ts
2023-07-13 11:57:23 +01:00

21 lines
508 B
TypeScript

import "react-i18next";
import blog from "../public/locales/en/blog.json";
import common from "../public/locales/en/common.json";
import home from "../public/locales/en/home.json";
import pricing from "../public/locales/en/pricing.json";
interface I18nNamespaces {
common: typeof common;
home: typeof home;
pricing: typeof pricing;
blog: typeof blog;
}
declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "common";
resources: I18nNamespaces;
returnNull: false;
}
}