-
Notifications
You must be signed in to change notification settings - Fork 1
/
i18next.d.ts
35 lines (32 loc) · 1.05 KB
/
i18next.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* If you want to enable locale keys typechecking and enhance IDE experience.
*
* Requires `resolveJsonModule:true` in your tsconfig.json.
*
* @link https://www.i18next.com/overview/typescript
*/
import 'i18next';
import type abbreviations from './public/locales/sl/abbreviations.json';
import type about from './public/locales/sl/about.json';
import type common from './public/locales/sl/common.json';
import type doctor from './public/locales/sl/doctor.json';
import type dr_report_error from './public/locales/sl/dr-report-error.json';
import type faq from './public/locales/sl/faq.json';
import type map from './public/locales/sl/map.json';
import type seo from './public/locales/sl/seo.json';
interface I18nNamespaces {
abbreviations: typeof abbreviations;
about: typeof about;
common: typeof common;
doctor: typeof doctor;
['dr-report-error']: typeof dr_report_error;
faq: typeof faq;
map: typeof map;
seo: typeof seo;
}
declare module 'i18next' {
interface CustomTypeOptions {
defaultNS: 'common';
resources: I18nNamespaces;
}
}