app/autotranslate/server/msTranslate.js
/**
	 * Returns translated message attachment description in target languages.
	 * @private
	 * @param {object} attachment
	 * @param {object} targetLanguages
	 * @returns {object} translated messages for each target language
	 */
Returns translated message attachment description in target languages.
@private
@param {object} attachment
@param {object} targetLanguages
@returns {object} translated messages for each target language
Returns translated message attachment description in target languages . @private @param { object } attachment @param { object } targetLanguages @returns { object } translated messages for each target language
_translateAttachmentDescriptions(attachment, targetLanguages) {
		try {
			return this._translate([{
				Text: attachment.description || attachment.text,
			}], targetLanguages);
		} catch (e) {
			msLogger.error({ err: e, msg: 'Error translating message attachment' });
		}
		return {};
	}
_translateAttachmentDescriptions ( attachment , targetLanguages ) { try { return this . _translate ( [ { Text : attachment . description || attachment . text , } ] , targetLanguages ) ; } catch ( e ) { msLogger . error ( { err : e , msg : 'Error translating message attachment' } ) ; } return { } ; }
Returns translated message attachment description in target languages.
Returns translated message attachment description in target languages .