Skip to content

Add Srpski (Cyrillic) #3860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Add Srpski (Cyrillic) #3860

wants to merge 2 commits into from

Conversation

taooceros
Copy link
Member

No description provided.

Copilot

This comment was marked as outdated.

@coderabbitai coderabbitai bot added the enhancement New feature or request label Jul 23, 2025
Copy link

gitstream-cm bot commented Jul 23, 2025

🥷 Code experts: Jack251970

Jack251970 has most 🧠 knowledge in the files.

See details

Flow.Launcher.Core/Resource/AvailableLanguages.cs

Knowledge based on git-blame:
Jack251970: 33%

✨ Comment /gs review for LinearB AI review. Learn how to automate it here.

Copy link

gitstream-cm bot commented Jul 23, 2025

Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX.

Copy link
Contributor

coderabbitai bot commented Jul 23, 2025

📝 Walkthrough

Walkthrough

A new Serbian Cyrillic language variant ("sr-Cyrl-RS") was added to the available languages list, along with its name and translation. The system translation mapping was updated to distinguish between Serbian in Latin and Cyrillic scripts, modifying the translation for "sr" and adding a new entry for "sr-Cyrl-RS".

Changes

Cohort / File(s) Change Summary
Language Variant Addition and Translation Update
Flow.Launcher.Core/Resource/AvailableLanguages.cs
Added Serbian_Cyrillic language variant with code "sr-Cyrl-RS" and name "Српска". Updated GetAvailableLanguages() to include it. Changed system translation for "sr" from "Систем" to "Sistem" and added "Систем" for "sr-Cyrl-RS".

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant AvailableLanguages

    User->>AvailableLanguages: GetAvailableLanguages()
    AvailableLanguages-->>User: List includes Serbian_Cyrillic ("sr-Cyrl-RS")

    User->>AvailableLanguages: GetSystemTranslation("sr")
    AvailableLanguages-->>User: "Sistem"

    User->>AvailableLanguages: GetSystemTranslation("sr-Cyrl-RS")
    AvailableLanguages-->>User: "Систем"
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested reviewers

  • jjw24

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1da7e1e and 7664944.

📒 Files selected for processing (1)
  • Flow.Launcher.Core/Resource/AvailableLanguages.cs (3 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in the flow launcher project, the version number in the `flow.launcher.csproj` file is dynamically u...
Learnt from: taooceros
PR: Flow-Launcher/Flow.Launcher#2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the `Flow.Launcher.csproj` file is dynamically updated during the CI/CD process.

Applied to files:

  • Flow.Launcher.Core/Resource/AvailableLanguages.cs
🧬 Code Graph Analysis (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (1)
Flow.Launcher.Core/Resource/Internationalization.cs (1)
  • Language (171-184)
🪛 GitHub Check: Check Spelling
Flow.Launcher.Core/Resource/AvailableLanguages.cs

[warning] 84-84:
Sistem is not a recognized word. (unrecognized-spelling)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
🔇 Additional comments (3)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (3)

20-20: LGTM! Proper language definition for Serbian Cyrillic.

The language code "sr-Cyrl-RS" correctly follows BCP 47 standards (language-script-region), and "Српска" is the appropriate Cyrillic display name for Serbian.


51-51: LGTM! Proper addition to available languages list.

The Serbian_Cyrillic language is correctly added to the available languages list and logically positioned after the Serbian variant.


84-85: LGTM! Script-consistent system translations implemented correctly.

The translation logic is now correct and script-consistent:

  • "sr" uses "Sistem" (Latin script translation of "System")
  • "sr-Cyrl-RS" uses "Систем" (Cyrillic script translation of "System")

This approach maintains consistency between each language variant's script and its system translation, which is more appropriate than using the same script for both variants.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch taooceros-patch-1

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:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • 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 generate unit tests to generate unit tests for 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1da7e1e and 1660369.

📒 Files selected for processing (1)
  • Flow.Launcher.Core/Resource/AvailableLanguages.cs (3 hunks)
🧠 Learnings (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

Learnt from: taooceros
PR: #2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the Flow.Launcher.csproj file is dynamically updated during the CI/CD process.

Learnt from: Jack251970
PR: #3850
File: Flow.Launcher.Core/Resource/Internationalization.cs:0-0
Timestamp: 2025-07-20T07:28:28.092Z
Learning: In Flow Launcher's Internationalization class, when the Flow Launcher language directory or default language file is missing, the only viable approach is to log an error and return early - there are no fallback mechanisms or alternative recovery strategies available due to architectural constraints.

🧰 Additional context used
🧠 Learnings (1)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

Learnt from: taooceros
PR: #2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the Flow.Launcher.csproj file is dynamically updated during the CI/CD process.

Learnt from: Jack251970
PR: #3850
File: Flow.Launcher.Core/Resource/Internationalization.cs:0-0
Timestamp: 2025-07-20T07:28:28.092Z
Learning: In Flow Launcher's Internationalization class, when the Flow Launcher language directory or default language file is missing, the only viable approach is to log an error and return early - there are no fallback mechanisms or alternative recovery strategies available due to architectural constraints.

🔇 Additional comments (2)
Flow.Launcher.Core/Resource/AvailableLanguages.cs (2)

20-20: LGTM! Proper BCP 47 language code and Cyrillic display name.

The Serbian Cyrillic language definition follows the correct BCP 47 standard ("sr-Cyrl-RS") and uses the appropriate Cyrillic script display name "Српска".


51-51: LGTM! Correctly added to the available languages list.

The Serbian_Cyrillic language is properly added to the list in a logical position after the existing Serbian entry.

Jack251970
Jack251970 previously approved these changes Jul 23, 2025
Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

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

Both rabbit and copilot raised issues,are they relevant?

@taooceros
Copy link
Member Author

Both rabbit and copilot raised issues,are they relevant?

oh sorry I think so. I misunderstand it before.

Copilot

This comment was marked as outdated.

@jjw24

This comment was marked as duplicate.

This comment was marked as duplicate.

@jjw24
Copy link
Member

jjw24 commented Jul 31, 2025

@coderabbitai full review

Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

✅ Actions performed

Full review triggered.

@Jack251970
Copy link
Member

@coderabbitai full review

@Jack251970 Jack251970 requested a review from Copilot July 31, 2025 12:56
Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

✅ Actions performed

Full review triggered.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for Serbian (Cyrillic) as a new language option, expanding the localization capabilities of the application. The change differentiates between Serbian Latin and Serbian Cyrillic scripts to provide more accurate language support for Serbian users.

  • Adds a new Serbian Cyrillic language variant with proper locale code and native name
  • Updates the system translation logic to handle both Serbian Latin and Cyrillic variants
  • Includes the new language in the available languages list
Comments suppressed due to low confidence (1)

Flow.Launcher.Core/Resource/AvailableLanguages.cs:20

  • The native name 'Српска' is grammatically incorrect. It should be 'Српски' to match the masculine form used for language names in Serbian, consistent with the existing Serbian entry.
        public static Language Serbian_Cyrillic = new Language("sr-Cyrl-RS", "Српска");

@jjw24
Copy link
Member

jjw24 commented Aug 4, 2025

@Jack251970 @taooceros not sure if the low confidence suggestion from Copilot needs addressing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 min review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants