-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support other languages #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, couple of pointers only
Here’s another question. Is German not supported because the seed phrases could potentially be too short and thus too awesome, à la «Zeichenorientierte Benutzerschnittstelle»? |
There is no wordlist for German in the official bip39 wordlists but I'm not sure why. https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md Theoretically support for Portuguese could be added. There's a PR open for quite a while now: tyler-smith/go-bip39#48 |
Technically any language could be supported though as long as the same wordlist is used for encryption and decryption. The words itselfs aren't that important. The important part is the possition where they are in the list. But I think it would make more sense if you keep this bip39 compatible since this is basically the standard |
amazing work y'all! lets merge this! |
switch strings.ToLower(language) { | ||
case "chinese-simplified": | ||
case "chinese-simplified", "zh", "zh_HANS": | ||
bip39.SetWordList(wordlists.ChineseSimplified) | ||
case "chinese-traditional": | ||
case "chinese-traditional", "zh_HANT": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I think zh_HANS
and zh_HANT
wouldn't match here
Hi, I absolutely love the idea of backup up ssh keys with mnemonic phrases!
This PR should add support for all languages supported by tyler-smith/go-bip39.
The language can be specified with the flag
-l
or--language
. The default is English.The following languages will be supported: