locale-wizard
Version:
Automatic JSON localization files translator
8 lines (7 loc) • 461 B
TypeScript
import { LocaleWizard } from "../index";
import { Locales } from "../types/public";
export declare function translateLocaleKeys(this: LocaleWizard, keyValuePairs: Record<string, string>, targetLocale: Locales): Promise<Record<string, string>>;
export declare function translateChunk(this: LocaleWizard, chunk: Record<string, string>, targetLocale: Locales, isRetry?: boolean): Promise<{
translated: Record<string, string>;
cost: number | undefined;
}>;