mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-06 02:43:49 +00:00
Korean uses ascii spaces, not ideographic spaces
This commit is contained in:
@@ -1155,7 +1155,7 @@
|
||||
function wordArrayToPhrase(words) {
|
||||
var phrase = words.join(" ");
|
||||
var language = getLanguageFromPhrase(phrase);
|
||||
if (language == "japanese" || language == "korean") {
|
||||
if (language == "japanese") {
|
||||
phrase = words.join("\u3000");
|
||||
}
|
||||
return phrase;
|
||||
|
||||
@@ -149,7 +149,7 @@ var Mnemonic = function(language) {
|
||||
// Set space correctly depending on the language
|
||||
// see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese
|
||||
var space = " ";
|
||||
if (language == "japanese" || language == "korean") {
|
||||
if (language == "japanese") {
|
||||
space = "\u3000"; // ideographic space
|
||||
}
|
||||
return words.join(space);
|
||||
|
||||
Reference in New Issue
Block a user