@frontitude/cli
Version:
The Frontitude CLI enables product teams to integrate their code with Frontitude (frontitude.com), thus creating a single source of truth for their product copy, from design to development.
30 lines (29 loc) • 1.07 kB
TypeScript
export declare const getDataAndFileCombinedResult: (filePath: string, data: {
[key: string]: string;
}, localeId: string | undefined, sourceData: {
[key: string]: string;
}, targetLocale: string, isXliffVersion2?: boolean) => Promise<object & {
[x: string]: {
[key: string]: string;
};
source: {
[key: string]: string;
};
}>;
export declare const updateFileWithData: (filePath: string, data: {
[key: string]: string;
}, localeId: string, sourceData: {
[key: string]: string;
}, sourceLanguageLocaleId?: string) => Promise<{
added: number;
edited: number;
}>;
export declare const getFileDiff: (oldFileContent: any, newFileContent: any) => {
added: number;
edited: number;
};
export declare const extendTextsPullOptions: (baseTextsPullOptions: TextsPullOptions) => TextsPullOptions;
export declare const getDryRunResult: (filePath: string, data: any) => Promise<{
[key: string]: string;
}>;
export declare const formatTextsForOutputFileType: (texts: any) => Promise<any>;