apertium / apertium-html-tools

Web application providing a fully localised interface for text/website/document translation, analysis and generation powered by Apertium.
http://wiki.apertium.org/wiki/Apertium-html-tools
GNU General Public License v3.0
39 stars 90 forks source link

UI can end up in strange state where subreadings of previous analysis are shown #470

Open unhammer opened 1 year ago

unhammer commented 1 year ago
  1. open https://beta.apertium.org/index.nno.html#analysis?aLang=nno&aQ=
  2. type in grapsripsforbetring and analyse
  3. type kakene and analyse

bilde

Developer tools says only kakene is sent curl 'https://beta.apertium.org/apy/analyze' -X POST -H blah:blah --data-raw 'lang=nno&q=kakene' and only the right analysis is received

[
    [
        "kakene/kake<n><f><pl><def>",
        "kakene"
    ]
]

localStorage:

analyzerLang: '"nno"'
​analyzerText: '"kakene"'
​instantTranslation: "true"
​length: 12
​locale: '"nno"'
​markUnknown: "false"
​recentSrcLangs: '["nno","afr","ara"]'
​recentTgtLangs: '["dan","eng","fin"]'
​srcLang: '"nno"'
​srcText: '""'
​tgtLang: '"dan"'
​translationChaining: "false"
​translationPrefs: "{}"