bip39WordList function

List<String> bip39WordList(
  1. Bip39Languages language
)

Returns the BIP-39 word list for the specified language.

Implementation

List<String> bip39WordList(Bip39Languages language) {
  switch (language) {
    case Bip39Languages.english:
      return _english;
    case Bip39Languages.spanish:
      return _spanish;
    case Bip39Languages.portuguese:
      return _portuguese;
    case Bip39Languages.korean:
      return _korean;
    case Bip39Languages.japanese:
      return _japanese;
    case Bip39Languages.italian:
      return _italian;
    case Bip39Languages.french:
      return _french;
    case Bip39Languages.czech:
      return _czech;
    case Bip39Languages.chineseTraditional:
      return _chineseTraditional;
    case Bip39Languages.chineseSimplified:
      return _chineseSimplified;
    default:
      return _english;
  }
}