Skip to content

expand-supported-language-options#923

Merged
yujonglee merged 2 commits intomainfrom
expand-supported-language-options
Jun 7, 2025
Merged

expand-supported-language-options#923
yujonglee merged 2 commits intomainfrom
expand-supported-language-options

Conversation

@ComputelessComputer
Copy link
Collaborator

No description provided.

The changes in this commit expand the list of supported languages in the
settings component. The new list includes a wider range of languages,
including more European and Asian languages, to better accommodate a
diverse user base.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 7, 2025

📝 Walkthrough

Walkthrough

The changes involve reordering and modifying the supported language codes array in a settings component, updating source code reference line numbers in English and Korean translation files, and marking one translation message as obsolete. No changes were made to logic, control flow, or exported/public entities.

Changes

Files Change Summary
apps/desktop/src/components/settings/views/general.tsx Reordered and modified the SUPPORTED_LANGUAGES array; adjusted language codes and their sequence.
apps/desktop/src/locales/en/messages.po
apps/desktop/src/locales/ko/messages.po
Updated translation source reference line numbers; marked "Default (llama-3.2-3b-q4)" message as obsolete.

Sequence Diagram(s)

No sequence diagram generated as the changes are limited to data structure reordering and translation metadata updates without affecting control flow or introducing new features.

✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/desktop/src/components/settings/views/general.tsx (1)

26-69: Consider organizing language codes with a clear principle.

The reordering of SUPPORTED_LANGUAGES affects the dropdown order in the UI. Consider organizing the language codes alphabetically by code or by expected usage frequency for better maintainability and user experience.

For alphabetical ordering by language code:

 const SUPPORTED_LANGUAGES: ISO_639_1_CODE[] = [
-  "es",
-  "it",
-  "ko",
-  "pt",
-  "en",
-  "pl",
-  "ca",
-  "ja",
-  "de",
-  "ru",
-  "nl",
-  "fr",
-  "id",
-  "uk",
-  "tr",
-  "ms",
-  "sv",
-  "zh",
-  "fi",
-  "no",
-  "ro",
-  "th",
-  "vi",
-  "sk",
-  "ar",
-  "cs",
-  "hr",
-  "el",
-  "sr",
-  "da",
-  "bg",
-  "hu",
-  "tl",
-  "bs",
-  "gl",
-  "mk",
-  "hi",
-  "et",
-  "sl",
-  "ta",
-  "lv",
-  "az",
+  "ar",
+  "az", 
+  "bg",
+  "bs",
+  "ca",
+  "cs",
+  "da",
+  "de",
+  "el",
+  "en",
+  "es",
+  "et",
+  "fi",
+  "fr",
+  "gl",
+  "hi",
+  "hr",
+  "hu",
+  "id",
+  "it",
+  "ja",
+  "ko",
+  "lv",
+  "mk",
+  "ms",
+  "nl",
+  "no",
+  "pl",
+  "pt",
+  "ro",
+  "ru",
+  "sk",
+  "sl",
+  "sr",
+  "sv",
+  "ta",
+  "th",
+  "tl",
+  "tr",
+  "uk",
+  "vi",
+  "zh",
 ];
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 78fff9e and 88f2230.

📒 Files selected for processing (3)
  • apps/desktop/src/components/settings/views/general.tsx (1 hunks)
  • apps/desktop/src/locales/en/messages.po (13 hunks)
  • apps/desktop/src/locales/ko/messages.po (13 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.{js,ts,tsx,rs}`: 1. No error handling. 2. No unused imports, variables, or functions. 3. For comments, keep it minimal. It should be about "Why", not "What".

**/*.{js,ts,tsx,rs}: 1. No error handling.
2. No unused imports, variables, or functions.
3. For comments, keep it minimal. It should be about "Why", not "What".

  • apps/desktop/src/components/settings/views/general.tsx
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: ci (windows, windows-latest)
  • GitHub Check: ci (macos, macos-latest)
🔇 Additional comments (2)
apps/desktop/src/locales/ko/messages.po (1)

265-266: LGTM! Proper localization maintenance.

The line number updates correctly align with source code changes, and marking "Default (llama-3.2-3b-q4)" as obsolete appropriately reflects the removal of this model option from the UI.

Also applies to: 349-350, 353-354, 445-446, 491-492, 495-498, 554-555, 558-559, 684-685, 693-694, 726-727, 755-756, 763-764, 832-833, 926-927, 930-931, 974-975, 1079-1080

apps/desktop/src/locales/en/messages.po (1)

265-266: LGTM! Consistent localization maintenance.

The changes are properly synchronized with the Korean locale file, maintaining consistency across all localization files with updated line numbers and the same obsolete message marking.

Also applies to: 349-350, 353-354, 445-446, 491-492, 495-498, 554-555, 558-559, 684-685, 693-694, 726-727, 755-756, 763-764, 832-833, 926-927, 930-931, 974-975, 1079-1080

@yujonglee yujonglee merged commit a4457bc into main Jun 7, 2025
5 checks passed
@yujonglee yujonglee deleted the expand-supported-language-options branch June 7, 2025 10:53
@coderabbitai coderabbitai bot mentioned this pull request Aug 4, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 13, 2025
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