How to use the iso-639-1.getAllNames function in iso-639-1

To help you get started, we’ve selected a few iso-639-1 examples, based on popular ways it is used in public projects.

github Coding-Coach / find-a-mentor / scripts / create-user.js View on Github external
source: async (answers, input) => {
    input = input || '';
    var data = ISO6391.getAllNames();
    var results = data.filter(language =>
      language.toLowerCase().startsWith(input.toLowerCase())
    );
    return results;
  },
};