2023-01-20 22:00:07 +08:00

9 lines
517 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PluginOption } from "vite"
export interface Voerkai18nPluginOptions{
location?: string // 指定当前工程目录
autoImport?: boolean // 是否自动导入t函数
debug?:boolean // 是否输出调试信息,当=true时在控制台输出转换匹配的文件清单
patterns?:(string | RegExp)[]
}
export default function Voerkai18nPlugin(options:Voerkai18nPluginOptions):PluginOption