Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a different locale separator than underscore #228

Open
Sundava opened this issue Apr 11, 2023 · 0 comments
Open

Allow a different locale separator than underscore #228

Sundava opened this issue Apr 11, 2023 · 0 comments

Comments

@Sundava
Copy link

Sundava commented Apr 11, 2023

In the get_locale function, the locale is sent to babel for parsing with no optional arguments. This means the call to Locale.parse(rv) (defined here in python-babel) uses the default value of _ as a separator.

However, RFC 5646 which is part of BCP 47 preconises using a hyphen (-) as a separator between the language tag and the subtag.

Is it possible to allow some configuration as to what separator is used in the call to Locale.parse ?

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

No branches or pull requests

1 participant