mirror of
https://github.com/status-im/bip39.git
synced 2025-02-19 16:04:16 +00:00
Merge pull request #55 from bitcoinjs/chinese-wordlist
Add chinese wordlists
This commit is contained in:
commit
45f1b84b56
4
index.js
4
index.js
@ -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,
|
||||
|
@ -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) {
|
||||
|
2050
wordlists/chinese_simplified.json
Normal file
2050
wordlists/chinese_simplified.json
Normal file
File diff suppressed because it is too large
Load Diff
2050
wordlists/chinese_traditional.json
Normal file
2050
wordlists/chinese_traditional.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user