i18n-pro
Version:
An out-of-the-box, lightweight JavaScript i18n auto-translation solution
21 lines (20 loc) • 545 B
TypeScript
import { BasicYoudaoConfig } from '../../type';
declare const config: BasicYoudaoConfig;
/**
* 设置翻译配置
* @param configProp
*/
export declare function setYoudaoConfig(configProp: typeof config): void;
/**
* 翻译多个文本到单个语言的具体实现
*/
export declare function translateByYoudao(props: {
texts: string[];
from: string;
to: string;
}): Promise<{
success: Record<string, string>;
error: Record<string, string>;
textErrorMsg: Record<string, string[]>;
}>;
export {};