forked from qualweb/types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocale.d.ts
53 lines (44 loc) · 907 Bytes
/
locale.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
declare module "@qualweb/locale" {
interface TranslationValues {
[key: string]: string | number | boolean;
}
interface ModuleTranslation {
[test: string]: {
name?: string;
description?: string;
results?: {
[rc: string]: string;
};
};
}
interface Locale {
"act-rules"?: ModuleTranslation;
"wcag-techniques"?: ModuleTranslation;
"best-practices"?: ModuleTranslation;
}
interface TranslationObject {
translate: Locale | string;
fallback: Locale | string;
}
interface Translate {
translate: Locale;
fallback: Locale;
}
type Lang = "en" | "fi" | "sv";
interface Langs {
en: Locale;
fi: Locale;
sv: Locale;
}
const locales: Langs;
export {
TranslationValues,
ModuleTranslation,
Locale,
TranslationObject,
Translate,
Lang,
Langs,
};
export default locales;
}