Skip to content

SB-I212: Added fallback for overlay#528

Merged
pallakartheekreddy merged 6 commits intoSunbird-Knowlg:release-7.7.0from
Deeksha1502:overlay-text-changes
Sep 12, 2025
Merged

SB-I212: Added fallback for overlay#528
pallakartheekreddy merged 6 commits intoSunbird-Knowlg:release-7.7.0from
Deeksha1502:overlay-text-changes

Conversation

@Deeksha1502
Copy link
Collaborator

Added fallback for Replay, Teacher's Note and Exit

Copy link
Contributor

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 fallback values for overlay menu labels when the AppLables object is undefined or missing specific properties. The changes ensure that "Replay", "Teacher's note", and "Exit" text is always displayed even when the internationalization labels are not available.

  • Added fallback text for three menu items in the overlay interface
  • Used logical OR operators and template literals to provide default English text
  • Ensures consistent user experience when localization data is incomplete

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
menu.html Added fallback "Replay" text for the replay button when AppLables.replay is undefined
overlay.js Added fallback "Teacher's note" text for stage instructions when AppLables.instructions is undefined
plugin.js Added fallback "Exit" text for the genie/exit button when AppLables.exit is undefined

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Deeksha1502 and others added 5 commits September 11, 2025 18:27
@pallakartheekreddy pallakartheekreddy merged commit 3e4ca3c into Sunbird-Knowlg:release-7.7.0 Sep 12, 2025
0 of 2 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.

3 participants