node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »


Electron Packager Plugin: Languages

GitHub license


After packaging a MacOS application, it contains all possible languages whether it supports or not. Then all those languages are listed at the App Store. The folders of unsupported languages should be removed in order to hide those languages at the detail page of the product.


Use the afterCopy hook in Electron Packager to run this plugin.

const setLanguages = require('electron-packager-languages');
  afterCopy: [setLanguages(['en', 'en_GB'])]