@ices/locale-webpack-plugin
Version:
webpack plugin for parsing locale files
17 lines (16 loc) • 520 B
TypeScript
export declare type DataType = string | number | boolean | object | null | undefined;
export declare type ParsedDataType = Exclude<DataType, undefined>;
export declare type LocaleData = {
[key: string]: Exclude<ParsedDataType, object>;
};
export declare type LocaleDataSet = {
[locale: string]: LocaleData;
};
/**
* 合并本地化消息数据。
* @param dataList 已经解析的数据列表。
*/
export default function merge(dataList: {
data: ParsedDataType;
locale?: string;
}[]): LocaleDataSet;