moneroMnemonicWorsList function
A function that returns a list of words for a specific Monero language.
Implementation
List<String> moneroMnemonicWorsList(MoneroLanguages language) {
switch (language) {
case MoneroLanguages.chineseSimplified:
return _chineseSimplified;
case MoneroLanguages.dutch:
return _dutch;
case MoneroLanguages.english:
return _english;
case MoneroLanguages.french:
return _french;
case MoneroLanguages.german:
return _german;
case MoneroLanguages.italian:
return _italian;
case MoneroLanguages.japanese:
return _japanese;
case MoneroLanguages.portuguese:
return _portuguese;
case MoneroLanguages.spanish:
return _spanish;
case MoneroLanguages.russian:
return _russian;
default:
throw UnimplementedError(
"monero mnemonic does not support ${language.name}");
}
}