Skip to content

[3.0.0b2] Fix Hindi locale - #21367

Merged
ramonlsouza merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
hiroshisuga:patch-12
Oct 18, 2024
Merged

ramonlsouza merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
hiroshisuga:patch-12

Conversation

@hiroshisuga

Copy link
Copy Markdown
Contributor

@coderabbitai

coderabbitai Bot commented Oct 4, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes involve updates to the settings.yml configuration file for the BigBlueButton HTML5 client. Modifications include correcting the language code for Hindi from hi-ID to hi-IN in the audioCaptions section. The darkTheme setting has been confirmed as enabled, while other user interface and audio functionality settings remain unchanged. The overall structure of the configuration file is preserved, with no new keys added or existing keys removed.

Changes

File Path Change Summary
bigbluebutton-html5/private/config/settings.yml - Updated Hindi language code from hi-ID to hi-IN in audioCaptions.language.available.
- Confirmed darkTheme setting is enabled.
- Other settings retained without modification.

Possibly related PRs

  • [3.0 chore] Remove language specification #21344: The changes in this PR also involve modifications to the audioCaptions section of the settings.yml file, specifically related to language specifications, which directly connects to the language code update in the main PR.

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?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2024

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 considerations

The primary change in this PR is the update of the Hindi language code from hi-ID to hi-IN in the audioCaptions.language.available section. This change aligns with the correct ISO codes for the Hindi language and India.

Considerations:

  1. Impact on existing users: Users who previously selected Hindi might need to reselect their language preference.
  2. Database updates: If language preferences are stored in a database, a migration script might be necessary to update existing hi-ID entries to hi-IN.
  3. 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:

  1. Create a migration plan for existing users with Hindi language preferences.
  2. Update any API endpoints or services that might be using the old language code.
  3. Test the language selection and audio caption functionality thoroughly with the new Hindi language code.
  4. Update relevant documentation to reflect the change from hi-ID to hi-IN.

Would you like assistance in creating a migration plan or updating documentation?


Inconsistent Hindi Language Codes Detected

Several instances of hi-ID were found, which may be inconsistent with the standard hi-IN locale used in settings.yml. Please verify and correct these discrepancies to ensure proper language configuration.

  • bigbluebutton-tests/playwright/core/elements.js
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/captions/component.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/button/component.tsx
  • bigbluebutton-html5/private/config/settings.yml (ensure consistency)
🔗 Analysis chain

Line range hint 93-126: Verify other language-related settings

The change to the Hindi language code looks good, but let's ensure that other language-related settings in the audioCaptions section are consistent with this update. Specifically, check the following:

  1. The forceLocale setting is currently set to false, which is good as it allows for language selection.
  2. The defaultSelectLocale is set to true, which means the default language will be used from the locale field.
  3. The locale field is set to disabled, 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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between a1ef524 and 2202b1b.

📒 Files selected for processing (1)
  • bigbluebutton-html5/private/config/settings.yml (1 hunks)

- es-ES
- fr-FR
# - hi-ID
# - hi-IN

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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.tsx
  • bigbluebutton-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

@github-actions

github-actions Bot commented Oct 4, 2024

Copy link
Copy Markdown

Automated tests Summary

🚨 Test workflow has failed


Click here to check the action test reports

@antobinary antobinary added this to the Release 3.0 milestone Oct 4, 2024

@antobinary antobinary left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages
image

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.
image

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.

3 participants