Skip to content

Add support for Gujarati language in lang.rs#14751

Merged
rustdesk merged 1 commit intorustdesk:masterfrom
leolouis:patch-7
Apr 14, 2026
Merged

Add support for Gujarati language in lang.rs#14751
rustdesk merged 1 commit intorustdesk:masterfrom
leolouis:patch-7

Conversation

@leolouis
Copy link
Copy Markdown
Contributor

@leolouis leolouis commented Apr 13, 2026

Summary by CodeRabbit

  • New Features
    • Added support for Gujarati language (ગુજરાતી)

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a153cbd7-92f7-4726-ac0c-1648ff2fb1d0

📥 Commits

Reviewing files that changed from the base of the PR and between a8dc6fc and c3c3846.

📒 Files selected for processing (1)
  • src/lang.rs

📝 Walkthrough

Walkthrough

Added support for Gujarati language by declaring a new gu module, registering the language in the LANGS constant with the tuple ("gu", "ગુજરાતી"), and extending translate_locale to route "gu" locale requests to the new Gujarati translation module.

Changes

Cohort / File(s) Summary
Gujarati Language Registration
src/lang.rs
Added mod gu; module declaration, registered ("gu", "ગુજરાતી") in LANGS constant, and extended translate_locale match statement to route "gu" locale to gu::T.deref().

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hop, hop! A new tongue joins the quest,
ગુજરાતી flows where strings are blessed,
With module routed, the locale knows,
Translation blooms, as language grows! 🌱

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the main change: adding Gujarati language support to lang.rs.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rustdesk rustdesk merged commit 28e3035 into rustdesk:master Apr 14, 2026
11 of 20 checks passed
changsongyang pushed a commit to changsongyang/rustdesk that referenced this pull request Apr 14, 2026
changsongyang pushed a commit to changsongyang/rustdesk that referenced this pull request Apr 19, 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.

2 participants