Skip to content

Allow None for Babel locale alias mappings - #1538

Open
arod19 wants to merge 1 commit into
python-babel:masterfrom
arod19:locale-aliases-optional
Open

arod19 wants to merge 1 commit into
python-babel:masterfrom
arod19:locale-aliases-optional

Conversation

@arod19

@arod19 arod19 commented Dec 4, 2026

Copy link
Copy Markdown

Type aliases as Mapping[str, str] | None in the locale negotiation and default-locale functions and their Locale wrappers. Passing None already disables the alias mapping at runtime.

Prepared with Codex (AI-assisted); I reviewed the change.

Co-Authored-By: Codex <noreply@openai.com>

This branch has not been deployed

No deployments
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