itns-sidechain/lib/hd/wordlist.js
2022-08-29 11:12:14 +02:00

30 lines
852 B
JavaScript

/*!
* wordlist.js - wordlists for hsd
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/handshake-org/hsd
*/
'use strict';
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}.`);
}
};