Add Locale enum

This commit is contained in:
Rapptz
2022-02-23 08:41:50 -05:00
parent 6979e56088
commit cc21872072
2 changed files with 164 additions and 0 deletions

View File

@ -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')