UNPKG

@shferreira/vue-i18n-extract

Version:

Manage vue-i18n localization with static analysis

41 lines (40 loc) 919 B
export type ReportOptions = { vueFiles: string; languageFiles: string; output?: string; exclude?: string[]; add?: boolean; remove?: boolean; ci?: boolean; separator?: string; noEmptyTranslation?: string; detect?: DetectionType[]; }; export declare enum DetectionType { Missing = "missing", Unused = "unused", Dynamic = "dynamic" } export type SimpleFile = { fileName: string; path: string; content: string; }; export type I18NItem = { line?: number; path: string; file?: string; language?: string; }; export type I18NItemWithBounding = I18NItem & { previousCharacter: string; nextCharacter: string; }; export type I18NLanguage = { [language: string]: I18NItem[]; }; export type I18NReport = { missingKeys: I18NItem[]; unusedKeys: I18NItem[]; maybeDynamicKeys: I18NItem[]; };