auto-translate-json-library
Version:
Automatically translates JSON language files to other languages using Google Translate,AWS,Azure,DeepL,OpenAI or local OpenAI compatible server
11 lines (10 loc) • 436 B
TypeScript
import type { ITranslate } from "./translate.interface";
export declare class AWSTranslate implements ITranslate {
private accessKeyId;
private secretAccessKey;
private regions;
private client;
constructor(accessKeyId: string, secretAccessKey: string, regions: string);
isValidLocale(targetLocale: string): boolean;
translateText(text: string, sourceLocale: string, targetLocale: string): Promise<string>;
}