internetarchive / internetarchive/bookreader
Raise error if translating from/to same language
Open
difficulty: easy
priority: high
translations
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 491
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 3
Description
Currently, if you click "Translate" while the same from/to language is selected, the spinner spins endlessly. Instead we want clicking "Translate" to `alert` an error saying that you cannot translate to/from the same language.
We also want to remove the " Translate To language is the same as the Source language" plaintext that appears at the bottom of the modal. Since the default language shown is often the same as the book.
Contributor guide
Assessment
This issue has not been assessed yet.