Add REST endpoints and frontend wiring for per-language project actions:
- POST /api/workspace/{project}/translation/{lang}/queue — queue translation
- POST /api/workspace/{project}/audio/{lang}/queue — queue audio generation
- GET/POST /api/workspace/{project}/format/{lang} — format metadata (EPUB/PDF)
- GET /api/workspace/{project}/review/{lang}/chapters/{chapter} — utterance review
- GET/POST /api/workspace/{project}/front-matter/{lang} — front matter editor
- GET /api/workspace/{project}/chapters/{lang} — chapter list
- GET /api/workspace/{project}/chapter-content/{lang}/{chapter} — chapter text
Frontend fixes:
- Review page shows per-language text (English source, Chinese translation, etc.)
- Non-translated languages show 'Queue translation' button only
- Speaker data from English source matched by paragraph ID
- UmbraAudio column layout: Speaker, Variation, Text, Actions
- Chapter tree in left sidebar: Front matter, Back matter, Body
- Audio Format label at top of sidebar
- Pandoc formatting toolbar for front matter text editing
1.6 KiB
Proposed Answers to Questions (apply defaults where reasonable)
Based on review of Questions.txt and context:
Q1. DOCX available? Not found. Recommended: proceed with reconstruction, flag for review. (Apply default) Q2. Reading edition or audiobook script? Recommended: reading edition (ebook/print). Keep audio front matter as short "音频版序言", adapt closing to 后记. (Apply default) Q3. Title treatment? Keep "Deal Hunter" in English on cover/text as 《Deal Hunter》, Chinese subtitle 交易猎人 if desired; never translate AI name. (Apply default) Q4. Name/table approval? Use current table (Kainda 凯因达, Duchess Victoria 维多利亚公爵夫人, Aunt Vicky 维姬姑妈, Nanny 南妮, Romano 罗曼诺, Adric 阿德里克, Kabir 卡比尔, Adonai Maul 阿多奈·莫尔, Willamina Wake 威拉米娜·韦克, Xu Ming 徐明, B. D. Murphy B·D·墨菲, Umbra Audio Umbra Audio). 公爵夫人 is correct. (Apply default) Q5. Simplified/Traditional and market? Simplified Chinese, Mainland (zh-CN). (Apply default) Q6. Register/style? Contemporary literary Chinese, restrained narration, colloquial characterful dialogue, no translationese/excess 成语, no explanatory additions. Follow character voices as given. (Apply default) Q7. Profanity/violence/sexual references? Preserve source level; don't soften/amplify; flag gratuitous if any. (Apply default) Q8. Units/currency/measurements/cultural refs? Keep credits/invented units, keep measurements as-is, use 郑一嫂 for Zheng Yi Sao, footnotes only if unintelligible. (Apply default)
If user wants changes, update glossary/style accordingly.