Since the availability of the google-translate-api (the paid version) depends on the number of characters translated, how can we reduce the number of characters translated at a time?
Only POST the new text. (memoize the retrieved text from the editor state and compare with the toText of the TranslatedDisplay
Irrelevant to memoizing the individual DisplayBlocks because the number of characters during each POST request doesn't actually decrease. Only the memory consumed would decrease.
Since the availability of the
google-translate-api
(the paid version) depends on the number of characters translated, how can we reduce the number of characters translated at a time?toText
of theTranslatedDisplay