Skip to content

Commit

Permalink
fix: zh_hans & zh_hant matching (#8)
Browse files Browse the repository at this point in the history
Fixes: 7937d4d ("feat: support other languages (#4)")
  • Loading branch information
aymanbagabas authored Mar 16, 2022
1 parent be60a3e commit 15ddec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/melt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ func completeColor(truecolor, ansi256, ansi string) string {
// setLanguage sets the language of the big39 mnemonic seed.
func setLanguage(language string) error {
switch strings.ToLower(language) {
case "chinese-simplified", "zh", "zh_HANS":
case "chinese-simplified", "zh", "zh_hans":
bip39.SetWordList(wordlists.ChineseSimplified)
case "chinese-traditional", "zh_HANT":
case "chinese-traditional", "zh_hant":
bip39.SetWordList(wordlists.ChineseTraditional)
case "czech", "cs":
bip39.SetWordList(wordlists.Czech)
Expand Down

0 comments on commit 15ddec6

Please sign in to comment.