json-autotranslate
Version:
Translate a folder of JSON files containing translations into multiple languages.
17 lines (16 loc) • 610 B
TypeScript
import { TranslationService, TString } from '.';
import { Matcher } from '../matchers';
export declare class AmazonTranslate implements TranslationService {
private translate?;
private interpolationMatcher?;
private decodeEscapes?;
private supportedLanguages;
name: string;
initialize(config?: string, interpolationMatcher?: Matcher, decodeEscapes?: boolean): Promise<void>;
supportsLanguage(language: string): boolean;
translateStrings(strings: TString[], from: string, to: string): Promise<{
key: string;
value: string;
translated: string;
}[]>;
}