Skip to content

Update supported languages and fix language codes#14406

Merged
Frenzie merged 1 commit into
koreader:masterfrom
cor-bee:patch-1
Oct 3, 2025
Merged

Update supported languages and fix language codes#14406
Frenzie merged 1 commit into
koreader:masterfrom
cor-bee:patch-1

Conversation

@cor-bee

@cor-bee cor-bee commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

This pull request significantly expands the set of supported languages in the SUPPORTED_LANGUAGES table in frontend/ui/translator.lua, updating the source to match the latest list from Google Translate and increasing coverage from 132 to 249 languages. It also updates some language codes and improves the mapping between alternate codes and their canonical forms.

Issue
I have stumbled upon the fact that I can occasionally auto-translate from Crimean Tatar, but can't set Crimean Tatar as the translation source language. As smaller portions of Crimean Tatar text can be misinterpreted as Turkish, Azerbaijani, etc., it was not a comforting experience. To fix that, I've added languages presented in Google Translate UI and missing from the current list.

Expansion of supported languages:

  • Added support for over 100 new languages and dialects, including regional variants and lesser-known languages, increasing the total from 132 to 249. Examples include Acehnese, Avar, Balinese, Cantonese, Crimean Tatar, Jamaican Patois, Santali, and many more.

Updates and corrections to existing language codes:

  • Updated several language names and codes for accuracy and clarity, such as changing Kurdish to Kurdish (Kurmanji) and Portuguese to Portuguese (Brazil) with the addition of Portuguese (Portugal).
  • Improved consistency for languages with multiple scripts or regional variants, e.g., adding Punjabi (Gurmukhi) and Punjabi (Shahmukhi), and differentiating between Santali (Latin) and Santali (Ol Chiki).

This change is Reviewable

@Frenzie Frenzie requested a review from poire-z October 3, 2025 18:20
@Frenzie Frenzie added this to the 2025.10 milestone Oct 3, 2025

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me.
It will just make 25 pages instead of 14 in the Translate from/to> submenus, which I guess we all hardly ever visit.

@Frenzie Frenzie merged commit 4bad102 into koreader:master Oct 3, 2025
4 checks passed
@cor-bee

cor-bee commented Oct 4, 2025

Copy link
Copy Markdown
Contributor Author

It will just make 25 pages instead of 14 in the Translate from/to> submenus

Agree, it's a little inconvenient. Maybe a search bar there would be nice but implementing that is over my programming skills.

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants