Skip to content

Fixed #37120 Updated vendored Select2 to version 4.1.0 and added missing translations.#21406

Open
SnippyCodes wants to merge 1 commit into
django:mainfrom
SnippyCodes:ticket-37120-autocomplete-fields
Open

Fixed #37120 Updated vendored Select2 to version 4.1.0 and added missing translations.#21406
SnippyCodes wants to merge 1 commit into
django:mainfrom
SnippyCodes:ticket-37120-autocomplete-fields

Conversation

@SnippyCodes

Copy link
Copy Markdown
Contributor

Trac ticket number

ticket-37120

Branch description

This PR updates the vendored version of the Select2 library in Django's admin from 4.0.13 to 4.1.0.
Additionally, this PR updates the SELECT2_TRANSLATIONS whitelist mapping in django/contrib/admin/widgets.py to support all missing and new language codes present in the Select2 translation files that are also supported by Django (e.g. Afrikaans, Esperanto, Uyghur, etc.). Prior to this, Select2 would fail to resolve these language files and default to English.

AI Assistance Disclosure (REQUIRED)

  • No AI tools were used in preparing this PR.
  • If AI tools were used, I have used Google's Antigravity for identifying translation mapping mismatches and writing test coverage.

Checklist

  • This PR follows the contribution guidelines.
  • This PR does not disclose a security vulnerability (see vulnerability reporting).
  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period (see guidelines).
  • I have not requested, and will not request, an automated AI review for this PR.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@SnippyCodes SnippyCodes changed the title Fixed #37120 -- Updated vendored Select2 to version 4.1.0 and added missing translations. Fixed #37120 Updated vendored Select2 to version 4.1.0 and added missing translations. Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant