keycloak-scim/js/apps/account-ui/src/i18next.d.ts

19 lines
580 B
TypeScript
Raw Normal View History

// https://www.i18next.com/overview/typescript
import "i18next";
import translation from "../public/locales/en/translation.json";
2023-01-16 10:23:07 +00:00
export type TranslationKeys = keyof translation;
declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "translation";
resources: {
translation: typeof translation;
};
2023-02-13 07:18:16 +00:00
// TODO: This flag should be removed and code that errors out should be made functional.
// This will have to be done incrementally as the amount of errors the default produces is just too much.
allowObjectInHTMLChildren: true;
}
}