Hence my Rube Goldberg machine commentOriginally Posted by MK27
If you're using what I suggested, then you should just be storing the data in memory. If you do write to file, it will because you are writing the translation obtained from the service to file as output.Originally Posted by Angel45
What do you mean by "evaluated twice"?Originally Posted by Angel45
Then that sounds like you are not actually leveraging the developer tools. My impression is that you used the source inspection from the developer tools, decided that you would like to parse that for the translated text, and so went about trying to leverage the developer tools do that.Originally Posted by Angel45
But the truth is that if you just want to get the translated text, then trying to format source in the same way as the developer tools is pointless. You might need the source of the page in order to get certain pieces of data so as to mimic the AJAX request to the service, but you don't need to mimic what the developer tools do. You need to mimic what the script on the page itself does.