internetarchive / internetarchive/bookreader

Raise error if translating from/to same language

Open
#1,488 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.