UNPKG

auto-translatr

Version:
12 lines (11 loc) 705 B
import { Either } from './utils'; import { TranslationReaderConfig } from './settingsReader'; export type Language = string; export type Translations = Record<string, string>; export declare const readAllTranslations: (supportedLanguages: Language[], config: TranslationReaderConfig) => Either<Error, Record<Language, Translations>>; export declare const writeLanguageFile: (language: Language, translations: Translations, config: TranslationReaderConfig, options?: { append: boolean; }) => Either<Error, void>; export declare const writeLanguageFiles: (translations: Record<Language, Translations>, config: TranslationReaderConfig, options: { append: boolean; }) => Promise<Either<Error, void>>;