i18n-llm-translate
Version:
Automatically translates namespace-based JSON translation files across multiple languages from any source language
10 lines (9 loc) • 526 B
TypeScript
import { TranslateNamespace, TranslateOptions } from "./type";
export interface TranslationCacheManager {
cache: any;
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>;