gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
16 lines (15 loc) • 810 B
TypeScript
import type { MemFsEditorFile } from 'mem-fs-editor';
import type { GetWebappTranslationCallback } from '../../client/translation.ts';
export type ReplacerOptions = {
jhiPrefix: string;
enableTranslation: boolean;
};
/**
* Replace and cleanup translations.
*
* @type {import('../generator-base.js').EditFileCallback}
* @this {import('../generator-base.js')}
*/
export declare const createTranslationReplacer: (getWebappTranslation: GetWebappTranslationCallback, opts: ReplacerOptions | boolean) => (content: string, filePath: string) => string;
export declare const isTranslatedAngularFile: (file: MemFsEditorFile) => boolean;
export declare const translateAngularFilesTransform: (getWebappTranslation: GetWebappTranslationCallback, opts: ReplacerOptions | boolean) => import("stream").Transform;