@gulibs/react-vintl
Version:
Type-safe i18n library for React with Vite plugin and automatic type inference
17 lines • 455 B
TypeScript
import type { PluginOption } from 'vite';
interface I18nPluginOptions {
basePath?: string;
extensions?: string[];
localePattern?: 'directory' | 'filename';
hmr?: boolean;
deep?: boolean;
exclude?: string[];
include?: string[];
debug?: boolean;
}
/**
* 创建 react-vintl 插件
*/
export declare function createReactVintlPlugin(options?: I18nPluginOptions): PluginOption[];
export {};
//# sourceMappingURL=plugin.d.ts.map