i18n-llm-translate
Version:
Automatically translates namespace-based JSON translation files across multiple languages from any source language
10 lines (9 loc) • 514 B
TypeScript
import { TranslateNamespace, TranslateOptions } from "./type";
interface TranslationCacheManager {
cleanCache(namespaces: TranslateNamespace[]): boolean;
syncCacheWithNamespaces(namespaces: TranslateNamespace[], writeNamespaceValues: boolean): void;
getBaseLanguageTranslationDifferences(namespace: TranslateNamespace): Record<string, any> | undefined;
write(): Promise<void>;
}
export declare function readTranslationsCache(options: TranslateOptions): Promise<TranslationCacheManager>;
export {};