From 297fcb0ef1a368695fd36dab81737931a72850b6 Mon Sep 17 00:00:00 2001 From: dolfies Date: Mon, 1 Jan 2024 19:13:14 -0500 Subject: [PATCH] Update locales --- discord/enums.py | 4 +++- docs/api.rst | 22 ++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 7e80e009d..fdd491789 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -1045,13 +1045,13 @@ T = TypeVar('T') 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' @@ -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' diff --git a/docs/api.rst b/docs/api.rst index a94bc230e..c8b035a02 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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. @@ -5079,12 +5085,6 @@ of :class:`enum.Enum`. The ``cs`` locale. - .. attribute:: indonesian - - The ``id`` locale. - - .. versionadded:: 2.0 - .. attribute:: danish The ``da`` locale. @@ -5117,6 +5117,10 @@ of :class:`enum.Enum`. The ``hu`` locale. + .. attribute:: indonesian + + The ``id`` locale. + .. attribute:: italian The ``it`` locale. @@ -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.