web: Localise fullscreen toggle

This commit is contained in:
Nathan Adams 2023-05-08 01:43:14 +02:00
parent d70faeec04
commit 2430cf192e
2 changed files with 4 additions and 2 deletions

View File

@ -1218,12 +1218,12 @@ export class RufflePlayer extends HTMLElement {
if (this.fullscreenEnabled) {
if (this.isFullscreen) {
items.push({
text: "Exit fullscreen",
text: text("context-menu-exit-fullscreen"),
onClick: () => this.instance?.set_fullscreen(false),
});
} else {
items.push({
text: "Enter fullscreen",
text: text("context-menu-enter-fullscreen"),
onClick: () => this.instance?.set_fullscreen(true),
});
}

View File

@ -7,3 +7,5 @@ context-menu-about-ruffle =
*[other] About Ruffle ({$version})
}
context-menu-hide = Hide this menu
context-menu-exit-fullscreen = Exit fullscreen
context-menu-enter-fullscreen = Enter fullscreen