Repository navigation
[3.0.0b2] Fix Hindi locale - #21367
Conversation
WalkthroughThe changes involve updates to the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (2)
bigbluebutton-html5/private/config/settings.yml (2)
Line range hint
1-1000: Summary of changes and considerationsThe primary change in this PR is the update of the Hindi language code from
hi-IDtohi-INin theaudioCaptions.language.availablesection. This change aligns with the correct ISO codes for the Hindi language and India.Considerations:
- Impact on existing users: Users who previously selected Hindi might need to reselect their language preference.
- Database updates: If language preferences are stored in a database, a migration script might be necessary to update existing
hi-IDentries tohi-IN.- Documentation: Any user documentation or API documentation mentioning Hindi language support should be updated to reflect the new language code.
To ensure a smooth transition, consider the following actions:
- Create a migration plan for existing users with Hindi language preferences.
- Update any API endpoints or services that might be using the old language code.
- Test the language selection and audio caption functionality thoroughly with the new Hindi language code.
- Update relevant documentation to reflect the change from
hi-IDtohi-IN.Would you like assistance in creating a migration plan or updating documentation?
Inconsistent Hindi Language Codes Detected
Several instances of
hi-IDwere found, which may be inconsistent with the standardhi-INlocale used insettings.yml. Please verify and correct these discrepancies to ensure proper language configuration.
bigbluebutton-tests/playwright/core/elements.jsbigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/captions/component.tsxbigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/button/component.tsxbigbluebutton-html5/private/config/settings.yml(ensure consistency)🔗 Analysis chain
Line range hint
93-126: Verify other language-related settingsThe change to the Hindi language code looks good, but let's ensure that other language-related settings in the
audioCaptionssection are consistent with this update. Specifically, check the following:
- The
forceLocalesetting is currently set tofalse, which is good as it allows for language selection.- The
defaultSelectLocaleis set totrue, which means the default language will be used from thelocalefield.- The
localefield is set todisabled, which means no specific language is forced by default.These settings appear to be correct and don't need changes related to the Hindi language code update. However, it's worth verifying that these settings align with the intended behavior for language selection in the application.
To ensure there are no hardcoded language settings elsewhere in the codebase that might conflict with this change, let's search for Hindi-related configurations:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for Hindi-related language configurations rg --type yaml --type javascript --type typescript "hindi|hi-[A-Z]{2}"Length of output: 107
Script:
#!/bin/bash # Search for Hindi-related language configurations rg --type yaml --type js --type ts "hindi|hi-[A-Z]{2}"Length of output: 830
| - es-ES | ||
| - fr-FR | ||
| # - hi-ID | ||
| # - hi-IN |
There was a problem hiding this comment.
💡 Codebase verification
Remaining instances of hi-ID found in the codebase.
The search for hi-ID revealed the following instances that need to be updated to hi-IN for consistency:
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/captions/component.tsxbigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/button/component.tsx
Please update these occurrences to ensure consistent language code usage throughout the project.
🔗 Analysis chain
Language code update for Hindi looks correct.
The change from hi-ID to hi-IN for the Hindi language code is accurate. This aligns with the ISO 639-1 language code for Hindi (hi) and the ISO 3166-1 alpha-2 country code for India (IN).
To ensure this change is consistent throughout the codebase, let's run a search for any remaining instances of hi-ID:
Adjusting the search command to use valid file types.
To fix the error, we'll update the shell script to use the correct file type identifiers recognized by ripgrep. Specifically, we'll replace javascript with js and ensure all specified types are valid.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for any remaining instances of 'hi-ID' in the codebase
rg --type yaml --type javascript --type typescript "hi-ID"
Length of output: 93
Script:
#!/bin/bash
# Search for any remaining instances of 'hi-ID' in the codebase
rg --type yaml --type js --type ts "hi-ID"
Length of output: 550
Automated tests Summary🚨 Test workflow has failedClick here to check the action test reports |
antobinary
left a comment
There was a problem hiding this comment.
https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages

Thank you for spotting and adjusting!
It seems we have hi-ID in a couple spots in the source code. We may replace with -IN everywhere for consistency.




What does this PR do?
Changes Hindi locale from hi-ID to hi-IN.
Motivation
Based on https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages