i18n-llm-translate
Version:
Automatically translates namespace-based JSON translation files across multiple languages from any source language
6 lines (5 loc) • 485 B
TypeScript
import { TranslateOptions } from "./type";
export declare function formatLanguageContainerDirectoryName(languageCode: string, options: TranslateOptions): string;
export declare function flattenObject(obj: any, parentKey?: string): Record<string, string>;
export declare function unflattenObject(flatTranslations: Record<string, string>): Record<string, any>;
export declare function logWithColor(color: 'red' | 'green' | 'yellow', firstMessage: string, ...otherMessages: any[]): void;