Skip to content

Commit 460328a

Browse files
committed
refactor: Delete extra Locale object, tweak current Locale object according to docs.
1 parent f2830cb commit 460328a

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

interactions/api/enums.py

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Normal libraries
2-
from enum import Enum, IntEnum
2+
from enum import IntEnum
33

44
# TODO: post-v4: Implement this into the new error system at a later point.
55
# class DefaultErrorType(IntEnum):
@@ -50,39 +50,6 @@ class OpCodeType(IntEnum):
5050
GUILD_SYNC = 12
5151

5252

53-
class Locale(str, Enum):
54-
DANISH = "da"
55-
GERMAN = "de"
56-
ENGLISH_UK = "en-GB"
57-
ENGLISH_US = "en-US"
58-
SPANISH = "es-ES"
59-
FRENCH = "fr"
60-
CROATIAN = "hr"
61-
ITALIAN = "it"
62-
LITHUANIAN = "lt"
63-
HUNGARIAN = "hu"
64-
DUTCH = "nl"
65-
NORWEGIAN = "no"
66-
POLISH = "pl"
67-
PORTUGUESE_BRAZILIAN = "pt-BR"
68-
ROMANIAN_ROMANIA = "ro"
69-
FINNISH = "fi"
70-
SWEDISH = "sv-SE"
71-
VIETNAMESE = "vi"
72-
TURKISH = "tr"
73-
CZECH = "cs"
74-
GREEK = "el"
75-
BULGARIAN = "bg"
76-
RUSSIAN = "ru"
77-
UKRAINIAN = "uk"
78-
HINDI = "hi"
79-
THAI = "th"
80-
CHINESE_CHINA = "zh-CN"
81-
JAPANESE = "ja"
82-
CHINESE_TAIWAN = "zh_TW"
83-
KOREAN = "ko"
84-
85-
8653
# TODO: post-v4: Implement this into the new error system at a later point.
8754
# class WSCloseCodeType(IntEnum):
8855
# """

interactions/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Locale(str, Enum):
176176
PORTUGUESE_BRAZIL = "pt-BR"
177177
ROMANIAN = "ro"
178178
RUSSIAN = "ru"
179-
SPANISH_SPAIN = "es-ES"
179+
SPANISH = "es-ES"
180180
SWEDISH = "sv-SE"
181181
THAI = "th"
182182
TURKISH = "tr"

0 commit comments

Comments
 (0)