Repository navigation
feat(i18n): translate GUI search and library actions - #953
Conversation
Translate browser search, discovery, playlist sync, library menus, sorting and radio actions into both Chinese scripts. Keep action payloads and command/config tokens unchanged.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Discovery, search, and commands src/core/i18n/gui/zh_hans.rs, src/core/i18n/gui/zh_hant.rs |
Both locale tables add general labels and translations for discovery, search, command prompts, and command descriptions. |
Search results and library actions src/core/i18n/gui/zh_hans.rs, src/core/i18n/gui/zh_hant.rs |
Both locale tables add version and search-result labels, track options, library actions, and album and artist sorting labels. |
History, deletion, and sorting src/core/i18n/gui/zh_hans.rs, src/core/i18n/gui/zh_hant.rs |
Both locale tables add song radio, listening history, deletion prompts, and sorting options. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Possibly related issues
- Issue 872: This work adds Simplified and Traditional Chinese GUI translations, matching the issue’s contributor-credit context for translation.
Possibly related PRs
- LargeModGames/spotatui#939: This PR adds more translations to the same Simplified and Traditional Chinese GUI tables.
- LargeModGames/spotatui#937: This PR updates release language information for Chinese browser-GUI availability.
- LargeModGames/spotatui#907: This PR adds GUI library-filter strings that this change translates.
Merge Risk: 
Minimal · up to 80807
-
No actionable merge-blocking risk is evident in the translated GUI strings.
Pre-merge checks: 
4
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
✨ Simplify code
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
The eleventh Chinese translation PR (refs #726), the second of the GUI table: the browser frontend's search and command bar, Discover, the library menus and sorting, playlist sync, radio actions, the update notices and the keyboard hints, in Simplified Chinese (
zh-Hans) and Traditional Chinese with Taiwan wording (zh-Hant).src/core/i18n/gui/zh_hans.rs,zh_hant.rs: 170 more strings, so 384 of the GUI table's 510 now have both translations...ENand come in the next PR.enter,tab,shift+enter,J K,[ ]) and command tokens stay as typed. Quotation marks follow each script's existing entries: “…” in Simplified, 「…」 in Traditional.gui/src/bindings/strings.jsonis regenerated.English is unchanged.
Testing
macOS (aarch64), on top of
fb8fbbb0:cargo fmt --all --check: clean.cargo clippy --locked -- -D warnings: clean on slim (telemetry,tui) and default.cargo test --locked: slim 1789 passed; default pluslocal-files,subsonic2393 passed, 21 ignored; the gui feature set with the five sources 2202 passed, 30 ignored.gui/:npm test540 passed (61 files);npm run typecheckandnpm run lintclean.Not run: the Linux-only
all-sourcesleg (PipeWire), which CI covers.Additional notes
A native-speaker review of the wording is welcome; any fix is a one-line change in the table.
Summary by CodeRabbit