nova-command-runner icon indicating copy to clipboard operation
nova-command-runner copied to clipboard

ReferenceError: __ is not defined when trying to run a custom command

Open jeroendelau opened this issue 1 year ago • 0 comments

When trying to run a custom command I get the error:

ReferenceError: __ is not defined
    at we (nova-command-runner:1:7124)

It appears to be related to code in pages/tool.vue

function runCustomCommand() {
    if (!customCommand.value) {
        Nova.error("Please enter a command");
        return;
    }

    openModal({
        label: __("Custom Command"),
        type: "primary",
        help: __("Are you sure you want to run this command?"),
        command_type: customCommandType.value,
        command: customCommand.value,
        variables: [],
        flags: [],
    });
}

Other localization appears to work fine, but this one fails. nova: 4.32.15 stepanenko3/nova-command-runner: 4.3.5

jeroendelau avatar Dec 09 '24 19:12 jeroendelau