Skip to content

Commit

Permalink
Update locales
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Jan 2, 2024
1 parent adcd6fd commit 297fcb0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
4 changes: 3 additions & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,13 +1045,13 @@ def __str__(self) -> str:

class Locale(Enum):
american_english = 'en-US'
arabic = 'ar'
british_english = 'en-GB'
bulgarian = 'bg'
chinese = 'zh-CN'
taiwan_chinese = 'zh-TW'
croatian = 'hr'
czech = 'cs'
indonesian = 'id'
danish = 'da'
dutch = 'nl'
finnish = 'fi'
Expand All @@ -1060,9 +1060,11 @@ class Locale(Enum):
greek = 'el'
hindi = 'hi'
hungarian = 'hu'
indonesian = 'id'
italian = 'it'
japanese = 'ja'
korean = 'ko'
latin_american_spanish = 'es-419'
lithuanian = 'lt'
norwegian = 'no'
polish = 'pl'
Expand Down
22 changes: 16 additions & 6 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5055,6 +5055,12 @@ of :class:`enum.Enum`.

The ``en-US`` locale.

.. attribute:: arabic

The ``ar`` locale.

.. versionadded:: 2.1

.. attribute:: british_english

The ``en-GB`` locale.
Expand All @@ -5079,12 +5085,6 @@ of :class:`enum.Enum`.

The ``cs`` locale.

.. attribute:: indonesian

The ``id`` locale.

.. versionadded:: 2.0

.. attribute:: danish

The ``da`` locale.
Expand Down Expand Up @@ -5117,6 +5117,10 @@ of :class:`enum.Enum`.

The ``hu`` locale.

.. attribute:: indonesian

The ``id`` locale.

.. attribute:: italian

The ``it`` locale.
Expand All @@ -5129,6 +5133,12 @@ of :class:`enum.Enum`.

The ``ko`` locale.

.. attribute:: latin_american_spanish

The ``es-419`` locale.

.. versionadded:: 2.1

.. attribute:: lithuanian

The ``lt`` locale.
Expand Down

0 comments on commit 297fcb0

Please sign in to comment.