@parvineyvazov/json-translator
Version:
Translate your JSON file or object into another languages with Google Translate API
7 lines (6 loc) • 492 B
TypeScript
import { translatedObject } from '..';
import { TranslationConfig } from '../modules/modules';
export declare function objectTranslator(TranslationConfig: TranslationConfig, object: translatedObject, from: string, to: string[], oldTranslations?: {
[key: string]: any;
}): Promise<translatedObject[]>;
export declare function deepDiver(TranslationConfig: TranslationConfig, object: translatedObject, from: string, to: string, oldTranslation?: any): Promise<translatedObject | null>;