rallly/apps/web/declarations/i18next.d.ts
2024-10-13 10:52:11 +01:00

18 lines
352 B
TypeScript

import "i18next";
import type emails from "@rallly/emails/locales/emails.json";
import type app from "../public/locales/en/app.json";
interface I18nNamespaces {
app: typeof app;
emails: typeof emails;
}
declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "app";
resources: I18nNamespaces;
returnNull: false;
}
}