-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
base: dev
Are you sure you want to change the base?
Add Srpski (Cyrillic) #3860
Conversation
🥷 Code experts: Jack251970 Jack251970 has most 🧠 knowledge in the files. See details
Knowledge based on git-blame: ✨ Comment |
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughA 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
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: "Систем"
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related PRs
Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: in the flow launcher project, the version number in the `flow.launcher.csproj` file is dynamically u...
Applied to files:
🧬 Code Graph Analysis (1)Flow.Launcher.Core/Resource/AvailableLanguages.cs (1)
🪛 GitHub Check: Check SpellingFlow.Launcher.Core/Resource/AvailableLanguages.cs[warning] 84-84: ⏰ 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)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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
📒 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.
There was a problem hiding this 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?
oh sorry I think so. I misunderstand it before. |
Co-authored-by: Copilot <[email protected]>
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
@coderabbitai full review |
✅ Actions performedFull review triggered. |
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this 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", "Српска");
@Jack251970 @taooceros not sure if the low confidence suggestion from Copilot needs addressing. |
No description provided.