hsd
Version:
Cryptocurrency bike-shed
31 lines (28 loc) • 852 B
JavaScript
/*!
* wordlist.js - wordlists for hsd
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/handshake-org/hsd
*/
;
exports.get = function get(name) {
switch (name) {
case 'simplified chinese':
return require('./words/chinese-simplified.js');
case 'traditional chinese':
return require('./words/chinese-traditional.js');
case 'english':
return require('./words/english.js');
case 'french':
return require('./words/french.js');
case 'italian':
return require('./words/italian.js');
case 'japanese':
return require('./words/japanese.js');
case 'portuguese':
return require('./words/portuguese.js');
case 'spanish':
return require('./words/spanish.js');
default:
throw new Error(`Unknown language: ${name}.`);
}
};