UNPKG

vue-i18n-extract

Version:

Manage vue-i18n localization with static analysis

40 lines (34 loc) 694 B
export type ReportOptions = { vueFiles: string; languageFiles: string; output?: string; exclude?: string[]; add?: boolean; remove?: boolean; ci?: boolean; separator?: string; noEmptyTranslation?: string; } 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[]; }