Instant TM in javascript editor


This includes two features that could be divided to separate stories. Both are intended to make the editor suggestions appear to have no latency:

  1. Saved translations from the current editor window are immediately available as suggestions.

    1. keep a local cache of recently saved translations

    2. apply the suggestion search to that cache at the same time as it is sent to the server

      1. cache results will likely be available before the server results, just display whatever is available as it arrives

    3. merge the server and cached-based results, inserting the cache-results in an appropriate place based on their score.

      1. should server results should win over cache results in a tie? May need some user testing or consultation to answer this

  2. suggestions for nearby phrases are pre-fetched and cached so they can be shown as soon as the phrase is selected

    1. optimal pre-fetch strategy should be determined by experiment

      1. minimize cases where results are not instantly available

      2. minimize cases where results are stale by the time the user selects the phrase

      3. results that are old are "stale", but can still be used for initial suggestion display while the search repeats

        1. because the TM results are not likely to change much over several minutes

        2. most of the changes are likely from the current user in the current session, so the first point above will mean stale search results with cached recent translations are usually identical to updated search results


Alex Eng
April 27, 2018, 5:31 AM

The current response time of displaying newly saved translations in TM is within a reasonable time.

Won't Do




David Mason


Tested Version/s


Epic Link