translate_selection
translate and replace the selection words
Start
;const ts = ;tsstart;
You can also overwrite the getWords
and getTranslate
methods for your project
/** * * @param clonedFragment return from Range.cloneContents * @param textArr = [] the words get from the clonedFragment * @returns textArr */ /** * * @param arr this.selectedWords * @returns translatedWordArr */