Merge pull request #55 from bitcoinjs/chinese-wordlist

Add chinese wordlists
This commit is contained in:
Daniel Cousens 2017-08-17 14:47:40 +10:00 committed by GitHub
commit 45f1b84b56
4 changed files with 4113 additions and 1 deletions

View File

@ -6,6 +6,8 @@ var randomBytes = require('randombytes')
// use unorm until String.prototype.normalize gets better browser support
var unorm = require('unorm')
var CHINESE_SIMPLIFIED_WORDLIST = require('./wordlists/chinese_simplified.json')
var CHINESE_TRADITIONAL_WORDLIST = require('./wordlists/chinese_traditional.json')
var ENGLISH_WORDLIST = require('./wordlists/english.json')
var FRENCH_WORDLIST = require('./wordlists/french.json')
var ITALIAN_WORDLIST = require('./wordlists/italian.json')
@ -141,6 +143,8 @@ module.exports = {
EN: ENGLISH_WORDLIST,
JA: JAPANESE_WORDLIST,
chinese_simplified: CHINESE_SIMPLIFIED_WORDLIST,
chinese_traditional: CHINESE_TRADITIONAL_WORDLIST,
english: ENGLISH_WORDLIST,
french: FRENCH_WORDLIST,
italian: ITALIAN_WORDLIST,

View File

@ -3,7 +3,15 @@ var fs = require('fs')
var path = require('path')
var log = console.log
var WORDLISTS = ['english', 'french', 'italian', 'japanese', 'spanish']
var WORDLISTS = [
'chinese_simplified',
'chinese_traditional',
'english',
'french',
'italian',
'japanese',
'spanish'
]
function update () {
download().then(function (wordlists) {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff