UNPKG

@parvineyvazov/json-translator

Version:

Translate your JSON file or object into another languages with Google Translate API

21 lines (20 loc) 582 B
export declare type TranslationModulesType = { [key: string]: TranslationModule; }; export declare type TranslationConfig = { moduleKey: string; TranslationModule: TranslationModule; concurrencyLimit: number; fallback: boolean; cacheEnabled: boolean; }; export interface TranslationModule { name: string; altName: string; languages: Record<string, string>; requirements?: string[]; init?: Function; translate: Function; onComplete?: Function; } export declare const TranslationModules: TranslationModulesType;