web: Localise fullscreen toggle
This commit is contained in:
parent
d70faeec04
commit
2430cf192e
|
@ -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),
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue