Translate = (menuTemplate, locale = "en-US") => {
    if (locale != "en-US") {
        return menuTemplate
    }

    /**
     * @param {import("./menu").MenuTemplateItem} x 
     */
    const _translateLabels = (x) => {
        if (x.label) {
            x.label = translations[x.label] || x.label
        }
        if (x.submenu) {
            x.submenu = x.submenu.map(_translateLabels)
        }
        return x
    }

    return menuTemplate.map(_translateLabels)
}
@param {import("./menu").MenuTemplate} menuTemplate 
@param {"zh-CN" | "en-US"} locale