MV How to change the text ON/OFF in options for specific plugin?

I'm translating a game made in RPG Maker MV, and I made a plugin to allow the player to choose if will be shown subtitles on videos.
The videos doesn't have subs, so I create the option to show then.
The plugin works fine, and show the option for the user choose if wants subs or not, but I want to change the 'ON/OFF' text for this specific option in the Options window.

Someone can help me?
👋 Here's what I would try:
JavaScript:
// Patch - custom status text for this option.
;void (function() {
"use strict";
  const sym = "subtitlesonvideo";                          // internal command symbol
  const alias = Window_Options.prototype.statusText;       // store original method
  Window_Options.prototype.statusText = function(index) {  // override method
    if (this.commandSymbol(index) === sym)                 // check current symbol
      return this.getConfigValue(sym) ? "ON" : "OFF";      // <- edit these strings!
    return alias.apply(this, arguments);                   // otherwise call stored method
  };
})();
👋 Here's what I would try:
JavaScript:
// Patch - custom status text for this option.
;void (function() {
"use strict";
  const sym = "subtitlesonvideo";                          // internal command symbol
  const alias = Window_Options.prototype.statusText;       // store original method
  Window_Options.prototype.statusText = function(index) {  // override method
    if (this.commandSymbol(index) === sym)                 // check current symbol
      return this.getConfigValue(sym) ? "ON" : "OFF";      // <- edit these strings!
    return alias.apply(this, arguments);                   // otherwise call stored method
  };
})();
Thank you very much.
Worked perfectly 😂
Great!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-the-text-on-off-in-options-for-specific-plugin.177731/