Skip to content

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

Description

@jeroendelau

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions