Locale enum

Inheritance

Constructors

Locale(String code)
const

Values

indonesian → const Locale
Locale('id')
danish → const Locale
Locale('da')
german → const Locale
Locale('de')
englishUk → const Locale
Locale('en-GB')
englishUs → const Locale
Locale('en-US')
spanish → const Locale
Locale('es-ES')
french → const Locale
Locale('fr')
croatian → const Locale
Locale('hr')
italian → const Locale
Locale('it')
lithuanian → const Locale
Locale('lt')
hungarian → const Locale
Locale('hu')
dutch → const Locale
Locale('nl')
norwegian → const Locale
Locale('no')
polish → const Locale
Locale('pl')
portugueseBrazilian → const Locale
Locale('pt-BR')
romanian → const Locale
Locale('ro')
finnish → const Locale
Locale('fi')
swedish → const Locale
Locale('sv-SE')
vietnamese → const Locale
Locale('vi')
turkish → const Locale
Locale('tr')
czech → const Locale
Locale('cs')
greek → const Locale
Locale('el')
bulgarian → const Locale
Locale('bg')
russian → const Locale
Locale('ru')
ukrainian → const Locale
Locale('uk')
hindi → const Locale
Locale('hi')
thai → const Locale
Locale('th')
chineseChina → const Locale
Locale('zh-CN')
japanese → const Locale
Locale('ja')
chineseTaiwan → const Locale
Locale('zh-TW')
korean → const Locale
Locale('ko')

Properties

code String
final
hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

deserialize(String code) Locale
Deserializes the code into a Locale. If the code is not a valid locale, returns the Locale.englishUs as it is considered the default locale from Discord.

Constants

values → const List<Locale>
A constant List of the values in this enum, in order of their declaration.
[indonesian, danish, german, englishUk, englishUs, spanish, french, croatian, italian, lithuanian, hungarian, dutch, norwegian, polish, portugueseBrazilian, romanian, finnish, swedish, vietnamese, tur…