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

Support Accept-Language to set LC_ settings #3371

Open
wolfgangwalther opened this issue Apr 3, 2024 · 0 comments
Open

Support Accept-Language to set LC_ settings #3371

wolfgangwalther opened this issue Apr 3, 2024 · 0 comments
Labels
idea Needs of discussion to become an enhancement, not ready for implementation

Comments

@wolfgangwalther
Copy link
Member

Now that we have timezone support via header, it would be cool to add support to change various LC_ settings via header, too. LC_MESSAGES is superuser-only and could mess up error message parsing by us on the server or on the client, too, so we shouldn't change it. But the other 3, LC_MONETARY, LC_NUMERIC, LC_TIME seem useful.

The first to come to mind is Accept-Language - but I'm not exactly sure how the "content negotiation" part of this would look like. If a language was accepted here, it would probably mean to return the actual content in that language as well - which is well beyond just setting some LC_ settings.

An alternative header would be another Prefer, of course. This could be made flexible enough to specifcy lc_monetary, lc_numeric and lc_time separately.

@wolfgangwalther wolfgangwalther added the idea Needs of discussion to become an enhancement, not ready for implementation label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Needs of discussion to become an enhancement, not ready for implementation
Development

No branches or pull requests

1 participant