pub enum Language {
English,
Japanese,
Korean,
French,
Italian,
Spanish,
SimplifiedChinese,
TraditionalChinese,
Czech,
}Expand description
Supported languages for BIP39 mnemonic phrases.
This enum represents all languages supported by the BIP39 specification. Each language has its own 2048-word list for generating and validating mnemonic phrases.
§Default Language
English is the default and most widely supported language across
cryptocurrency applications and hardware wallets.
Variants§
English
English language word list.
This is the default and most commonly used language for BIP39 mnemonics. Supported by virtually all cryptocurrency wallets and applications.
The English word list contains 2048 words, each 3-8 characters long, chosen to be unambiguous and easy to distinguish.
Japanese
Japanese language word list.
Uses hiragana characters and is popular in Japan. Each word in the Japanese word list is carefully chosen to be unambiguous when written in hiragana.
Korean
Korean language word list.
Uses hangul (Korean alphabet) characters for Korean users. Designed to avoid similar-looking or similar-sounding words.
French
French language word list.
Uses French words with proper accents and diacritics. Words are chosen to be clear and unambiguous in French.
Italian
Italian language word list.
Uses Italian words selected for clarity and distinction. Avoids words that might be confused with each other.
Spanish
Spanish language word list.
Uses Spanish words carefully selected to avoid ambiguity. Includes proper Spanish accents and spelling.
SimplifiedChinese
Simplified Chinese language word list.
Uses simplified Chinese characters (mainland China standard). Each character/word is chosen for uniqueness and clarity.
TraditionalChinese
Traditional Chinese language word list.
Uses traditional Chinese characters (Taiwan/Hong Kong standard). Characters selected to be easily distinguishable.
Czech
Czech language word list.
Uses Czech words with proper diacritics and Czech spelling. Words chosen to be unambiguous in Czech language context.
Implementations§
Source§impl Language
impl Language
Sourcepub const fn default() -> Self
pub const fn default() -> Self
Returns the default language (English).
§Examples
assert_eq!(Language::default(), Language::English);Sourcepub const fn all_variants() -> &'static [Language]
pub const fn all_variants() -> &'static [Language]
Returns all supported language variants.
This is useful for iteration or UI language selection.
§Examples
let languages = Language::all_variants();
assert!(languages.contains(&Language::English));
assert!(languages.contains(&Language::Japanese));
assert_eq!(languages.len(), 9);