aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/@types/i18next.d.ts.draft
blob: 46ff155e5ffa47d5b3a0d7f112ece5a127ce5499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// import the original type declarations
import "i18next";
// import all namespaces (for the default language, only)
import admin from "../locales/en/admin.json";
import translation from "../locales/en/translation.json";

declare module "i18next" {
  // and extend them!
  interface CustomTypeOptions {
    // custom namespace type if you changed it
    defaultNS: "translation";
    // custom resources type
    resources: {
      admin: typeof admin;
      translation: typeof translation;
    };
  }
}