This MR offers a proposed solution to the above linked ticket.
It connects to the plug Plug.Accepts to access accept-language from the HTTP request headers when fetching the page. Then, it updates get_user_locale to attempt to read from the headers. If this fails, it falls back to the existing behaviour for fetching from user definition.
Please do test this thoroughly as I had some issues when running SignDict locally. I don't believe they were related to the changes, but as the owner I expect you'll have better luck running the environment fully compared to me!
Please let me know if there's any issues/changes you'd like to see.
Addressing #228.
Hi @bitboxer ,
This MR offers a proposed solution to the above linked ticket.
It connects to the plug Plug.Accepts to access accept-language from the HTTP request headers when fetching the page. Then, it updates
get_user_locale
to attempt to read from the headers. If this fails, it falls back to the existing behaviour for fetching from user definition.Please do test this thoroughly as I had some issues when running SignDict locally. I don't believe they were related to the changes, but as the owner I expect you'll have better luck running the environment fully compared to me!
Please let me know if there's any issues/changes you'd like to see.
Best, David