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