UNPKG

gen-jhipster

Version:

Spring Boot + Angular/React/Vue in one handy generator

15 lines (14 loc) 755 B
import type { GetWebappTranslationCallback } from '../../../lib/types/base/translation.js'; 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: any) => boolean; export declare const translateAngularFilesTransform: (getWebappTranslation: GetWebappTranslationCallback, opts: ReplacerOptions | boolean) => import("stream").Transform;