mozilla / translate

Translations website utilizing Bergamot proceedings
https://mozilla.github.io/translate
Mozilla Public License 2.0
59 stars 15 forks source link

“Error translating” when duplicating a tab #4

Open acornestean opened 3 years ago

acornestean commented 3 years ago

[Affected versions]: Firefox Nightly (94.0a1/20210909212746)

[Affected Platforms]: Windows 10 x64

[Prerequisites]: Access https://mozilla.github.io/translate/.

[Steps to reproduce]:

  1. Translate any random text in any supported language combinations
  2. Once the translation has finished, duplicate the tab
  3. Notice that on the duplicate tab the input text as well as the translated text are still present, but the “From” and “To” language combination has been reset.
  4. Click on the text from the “From” field and press “Enter”
  5. Observe that the “Error translating” message is displayed

NOTE: Setting a “To” language without setting a “From” language will not resolve the issue. Both “From” and “To” languages must be set once more to resolve the issue.

[Expected]: Duplicating a tab with translation results should keep the original language combination set on the duplicate tab as well.

[Actual]: Duplicating a tab resets the selected language combination and causes the “Error translating” message to be displayed.

2021-09-10_10h52_46