import decache from 'decache' ; import { IPseudolocaleOptions } from './interfaces' ; export class Pseudolocalization { public static getPseudolocalizer ( options ) { decache ( 'pseudolocale' ) ; const pseudolocale = require ( 'pseudolocale' ) ; pseudolocale . option = { ... pseudolocale . option , ... options } ; return pseudolocale . str ; } }