mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Add Locale enum
This commit is contained in:
@ -57,6 +57,7 @@ __all__ = (
|
||||
'InteractionResponseType',
|
||||
'NSFWLevel',
|
||||
'MFALevel',
|
||||
'Locale',
|
||||
)
|
||||
|
||||
|
||||
@ -615,6 +616,42 @@ class MFALevel(Enum, comparable=True):
|
||||
require_2fa = 1
|
||||
|
||||
|
||||
class Locale(Enum):
|
||||
american_english = 'en-US'
|
||||
british_english = 'en-GB'
|
||||
bulgarian = 'bg'
|
||||
chinese = 'zh-CN'
|
||||
taiwan_chinese = 'zh-TW'
|
||||
croatian = 'hr'
|
||||
czech = 'cs'
|
||||
danish = 'da'
|
||||
dutch = 'nl'
|
||||
finnish = 'fi'
|
||||
french = 'fr'
|
||||
german = 'de'
|
||||
greek = 'el'
|
||||
hindi = 'hi'
|
||||
hungarian = 'hu'
|
||||
italian = 'it'
|
||||
japanese = 'ja'
|
||||
korean = 'ko'
|
||||
lithuanian = 'lt'
|
||||
norwegian = 'no'
|
||||
polish = 'pl'
|
||||
brazil_portuguese = 'pt-BR'
|
||||
Romanian = 'ro'
|
||||
Russian = 'ru'
|
||||
spain_spanish = 'es-ES'
|
||||
swedish = 'sv-SE'
|
||||
thai = 'th'
|
||||
turkish = 'tr'
|
||||
ukrainian = 'uk'
|
||||
vietnamese = 'vi'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.value
|
||||
|
||||
|
||||
E = TypeVar('E', bound='Enum')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user