WXL
5 天以前 871522ed7e06fd9c62a87c178d7f5c88d7853a20
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
export type ReportOptions = {
  vueFiles: string;
  languageFiles: string;
  output?: string;
  add?: boolean;
  remove?: boolean;
  dynamic?: number;
  ci?: boolean;
}
 
export type LanguageFile = {
  fileName: string;
  path: string;
  content: Record<string, unknown>;
}
 
export type SimpleFile = {
  fileName: string;
  path: string;
  content: string;
}
 
export type I18NItem = {
  line?: number;
  path: string;
  file?: string;
  language?: string;
}
 
export type I18NLanguage = {
  [language: string]: I18NItem[];
}
 
export type I18NReport = {
  missingKeys?: I18NItem[];
  unusedKeys?: I18NItem[];
  dynamicKeys?: I18NItem[];
}