feat: Chinese (zh-CN) localization for frontend#69
Conversation
* @
fix: skip torch.compile on Windows where Triton is unavailable
torch.compile with mode="reduce-overhead" depends on Triton, which has no
official Windows support. On Windows the compile call succeeds but generates
code paths that crash at inference time with an OOM-like error
("Cannot find a working triton installation").
Check for Triton availability before compiling so TTS gracefully falls back
to eager mode on platforms without Triton.
Closes debpalash#65
SummerSec
@
* feat: comprehensive Chinese (zh-CN) localization for Settings and navigation
Add full Chinese (zh-CN) translation support across the frontend:
- NavRail, Launchpad, Clone/Design tabs, Settings (all tabs)
- Sidebar navigation labels, hero text, action cards, section headings
- Fix: Settings missing General tab in TABS array
- Fix: i18n locale not persisted after page reload (useEffect deps)
- Fix: NavRail key prop spreading into JSX elements
Co-authored-by: SummerSec
* fix: translate production override parameter labels (Speed, t_shift, etc.)
* fix: translate voice design category labels (Gender, Age, Pitch, etc.)
* feat: translate Transcriptions and Voice Gallery pages
* fix: translate gallery category names (Disney, Anime, etc.)
* feat: translate DubTab, personality presets, and voice design presets
* fix: remove duplicated emoji in personality name translations
* fix: correct preset translation keys to match actual preset IDs
* fix: filter natural language from personality instruct to prevent validation error
* fix: handle edge case where instruct has no valid tags
* chore: remove debug logging from personality instruct filter
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThis PR implements comprehensive internationalization (i18n) across the frontend application with support for English and Chinese locales. It adds locale-aware theme hydration at the app root, introduces a new Settings GeneralTab for language/theme configuration, and optimizes backend model compilation to conditionally apply torch.compile based on triton availability. All user-facing strings have been replaced with translation keys across ten frontend pages plus components. ChangesInternationalization & Localization
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes The PR is large and spans many files with heterogeneous changes—each page component and the Settings module require individual review of localization logic and translation key mappings. While most changes follow a consistent pattern (useTranslation + t() calls), the Settings page contains significant structural changes (TAB_DEFS, GeneralTab, CREDENTIAL_DEFS) and the Clone/Design tab adds validation logic alongside localization. The backend change is minimal and straightforward. Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Replaced by PR #66 which has properly separated commits |
Summary
Comprehensive Chinese (zh-CN) localization across the frontend, plus bug fixes.
Translated pages
Bug fixes
SummerSec
Summary by CodeRabbit
Release Notes
New Features
Improvements