UNPKG

i18n-pro

Version:

An out-of-the-box, lightweight JavaScript i18n auto-translation solution

20 lines (19 loc) 437 B
import type { Config } from '../type'; /** * 生成配置文件 */ export declare function initConfig(type?: 'js' | 'ts', pathProp?: string): void; /** * 解析js配置文件 */ export declare function parseJsConfig(props?: { path: string; isFile?: boolean; }): Config; /** * 解析配置文件 */ export declare function readConfig(props?: { path: string; isFile?: boolean; }): Promise<Config>;