UNPKG

@ices/locale-webpack-plugin

Version:
17 lines (16 loc) 520 B
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;