feat(books): remember a default read-aloud narration language

Resolve book languages stated as names ("English") to a code, so the
dialog and the server's fallback stop calling English unsupported. The
dialog groups the ebook and audiobook in a Sources card, shows
Highlighting without the Advanced disclosure, and saves a per-user
default under /user-preferences/read-aloud for books it cannot match.
This commit is contained in:
neon
2026-10-22 00:42:06 +00:00
parent 0320210767
commit 8810d47658
16 changed files with 599 additions and 178 deletions
+6 -1
View File
@@ -7110,6 +7110,7 @@
"dialog": {
"title": "Create a read-aloud",
"description": "Matches the narration to the ebook text and adds an EPUB that highlights along with the audio.",
"sources": "Sources",
"ebook": "Ebook",
"ebookHint": "Pick the plain EPUB that matches the narration.",
"existing": {
@@ -7138,7 +7139,11 @@
"language": "Narration language",
"chooseLanguage": "Choose a language",
"languageUnsupported": "{language} isn't supported by the speech model.",
"advanced": "Advanced",
"languageFromBook": "From this book's details.",
"languageIsDefault": "Your default language.",
"languageSavedAsDefault": "Saved as your default language.",
"setDefaultLanguage": "Set as default",
"defaultLanguageFailed": "Couldn't save your default language. Try again.",
"granularity": "Highlighting",
"sentence": "Sentence",
"sentenceHint": "Highlights one sentence at a time. Recommended.",