Closed unhammer closed 1 year ago
Might be useful to publish your local storage for purposes of debugging.
{
"tgtLang": "\"nno\"",
"generatorText": "\"\"",
"instantTranslation": "true",
"markUnknown": "true",
"recentTgtLangs": "[\"nno\",\"dan\",\"eng\"]",
"analyzerText": "\"\"",
"translationChaining": "false",
"srcLang": "\"nob\"",
"translationPrefs": "{\"nob-nno\":{\"ggj_gg\":true,\"medan_mens\":true,\"kløyvd_inf\":false,\"infa_infe\":true,\"løk_lauk\":true,\"røyndom_røynd\":false,\"røyndom_verkelegheit\":true,\"de_dokker\":true}}",
"srcText": "\"Se. \\nVindu. \\nFestet.\\nSamtaler.\\n\\n\"",
"recentSrcLangs": "[\"nob\",\"nno\",\"nno\"]",
"locale": "\"nno\"",
"generatorLang": "\"ady\"",
"analyzerLang": "\"oci_gascon\""
}
Huh, I see why the UI would behave this way with the given local storage. I'm not sure how you ended up with that config, though...
would the state be cleaned by a uniq on the recentSrcLangs list?
https://github.com/apertium/apertium-html-tools/commit/3470f11fc7c15ee273981cb445495324d9c9b673 should fix it.
Although, I'm still confused as to how this happened since this should prevent it: https://github.com/apertium/apertium-html-tools/blob/3470f11fc7c15ee273981cb445495324d9c9b673/src/components/translator/Translator.tsx#L118
Thanks! Yeah I have no idea :-/
I think I broke it:
Not sure how.
Then I clicked ctrl+shift+R:![bilde](https://user-images.githubusercontent.com/56868/223662483-e0c42ffa-28be-4745-94a2-ea51a615ec4f.png)
and if I select nynorsk there: