sendou.ink/types/react-i18next.d.ts
2022-07-17 13:38:57 +03:00

21 lines
599 B
TypeScript

import "react-i18next";
import type common from "../public/locales/en/common.json";
import type faq from "../public/locales/en/faq.json";
import type contributions from "../public/locales/en/contributions.json";
import type user from "../public/locales/en/user.json";
import type badges from "../public/locales/en/badges.json";
declare module "react-i18next" {
interface CustomTypeOptions {
defaultNS: "common";
resources: {
common: typeof common;
faq: typeof faq;
contributions: typeof contributions;
user: typeof user;
badges: typeof badges;
};
}
}