module . exports = class Translate { translate : any ; vscode : any ; constructor ( translate , vscode ) { this . translate = translate ; this . vscode = vscode ; } translation = async ( fileData ) => { return await this . translate ( fileData , { to : 'ur' } ) . then ( ( res ) => { if ( ! res ) this . vscode . window . showInformationMessage ( 'Unable to convert' ) ; else { const urduText = res . text ; return urduText ; } } ) . catch ( ( err ) => { this . vscode . window . showInformationMessage ( 'Unable to convert' ) ; return err ; } ) ; } ; } ;