UNPKG

translation-io-sync

Version:

This Typescript implementation acts as a `translation.io` client

20 lines (19 loc) 781 B
import { Translation } from "../translation.types"; export interface TranslationSegment { kind: string; messageId: string; messageContext: string; languages: string[]; } export declare class SynchronizationResponse { readonly projectName: string; readonly projectUrl: string; readonly unusedSegments: TranslationSegment[]; readonly getTextTranslations: Translation[]; readonly yamlTranslations: Translation[]; static parse(body: any): SynchronizationResponse; private static parseSegments; private static parseTranslations; constructor(projectName: string, projectUrl: string, unusedSegments: TranslationSegment[], getTextTranslations: Translation[], yamlTranslations: Translation[]); get numberOfUnusedSegments(): number; }