Skip to content

Conversation

@GuiLeme
Copy link
Collaborator

@GuiLeme GuiLeme commented May 14, 2025

What does this PR do?

This PR adds new hardcoded messages as a fallback for when the correct message is not even in the en.json locales.

The code might be a little bit duplicated because we have the same message in 2 places (as the default messages are the same as those in en.json), but from a user perspective, this will help a bunch, as it will avoid displaying the key of the locale message if there was a fail when fetching en.json, for instance.

More

During this PR, a bug was found in useLocaleMessages, which is: if the en.json file is empty, the change of language doesn't work, this might be happening when merging the fallback messages with the desired messages.

  • Fix problem when en.json is empty

@antobinary antobinary merged commit 8e93147 into bigbluebutton:v0.0.x May 14, 2025
3 checks passed
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