From 9198c273c79b49ee8027e255112f88cdb8fc1b5c Mon Sep 17 00:00:00 2001 From: Wesley Date: Fri, 25 Apr 2025 14:14:24 -0300 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=F0=9F=90=9B=20update=20`valid=5Floc?= =?UTF-8?q?ates`=20variable=20to=20support=20two=20more=20languages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + discord/commands/core.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38725e4141..475414891f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -103,6 +103,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2739](https://github.com/Pycord-Development/pycord/pull/2739)) - Fixed missing `None` type hints in `Select.__init__`. ([#2746])(https://github.com/Pycord-Development/pycord/pull/2746) +- Fixed `valid_locates` mismatch with Discord API locales by adding `id` (Indonesian) and `es-419` (Spanish, LATAM) ### Changed diff --git a/discord/commands/core.py b/discord/commands/core.py index 6dd1b0d636..bee43341fd 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -2042,11 +2042,13 @@ def command(**kwargs): docs = "https://discord.com/developers/docs" valid_locales = [ + "id", "da", "de", "en-GB", "en-US", "es-ES", + "es-419", "fr", "hr", "it", From 34521ba3f64f04b32e5b870c6b92359edf5acae6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 17:30:11 +0000 Subject: [PATCH 2/4] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 475414891f..f2584a28f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -103,7 +103,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2739](https://github.com/Pycord-Development/pycord/pull/2739)) - Fixed missing `None` type hints in `Select.__init__`. ([#2746])(https://github.com/Pycord-Development/pycord/pull/2746) -- Fixed `valid_locates` mismatch with Discord API locales by adding `id` (Indonesian) and `es-419` (Spanish, LATAM) +- Fixed `valid_locates` mismatch with Discord API locales by adding `id` (Indonesian) + and `es-419` (Spanish, LATAM) ### Changed From 9e3fac14c130ac1a6e60c71123321772c45e6e8f Mon Sep 17 00:00:00 2001 From: Wesley413 <69313417+Wesley413@users.noreply.github.com> Date: Fri, 25 Apr 2025 14:31:13 -0300 Subject: [PATCH 3/4] Update CHANGELOG.md Signed-off-by: Wesley413 <69313417+Wesley413@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2584a28f1..829a9cd35a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -105,6 +105,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2746])(https://github.com/Pycord-Development/pycord/pull/2746) - Fixed `valid_locates` mismatch with Discord API locales by adding `id` (Indonesian) and `es-419` (Spanish, LATAM) + ([#2767])(https://github.com/Pycord-Development/pycord/pull/2767) ### Changed From 8a9d545f3a4f9728adc0f25955202f0019bd8e10 Mon Sep 17 00:00:00 2001 From: plun1331 Date: Fri, 25 Apr 2025 11:27:04 -0700 Subject: [PATCH 4/4] Apply suggestions from code review Signed-off-by: plun1331 --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 829a9cd35a..3e40955afe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -103,8 +103,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2739](https://github.com/Pycord-Development/pycord/pull/2739)) - Fixed missing `None` type hints in `Select.__init__`. ([#2746])(https://github.com/Pycord-Development/pycord/pull/2746) -- Fixed `valid_locates` mismatch with Discord API locales by adding `id` (Indonesian) - and `es-419` (Spanish, LATAM) +- Updated `valid_locales` to support `in` and `es-419`. ([#2767])(https://github.com/Pycord-Development/pycord/pull/2767) ### Changed