Skip to content

feat(PlanParams): enable a custom locale#22

Merged
thecristen merged 2 commits into
mainfrom
cbj/accept-language
Sep 8, 2025
Merged

feat(PlanParams): enable a custom locale#22
thecristen merged 2 commits into
mainfrom
cbj/accept-language

Conversation

@thecristen

Copy link
Copy Markdown
Collaborator

Although planConnection has a locale argument, OpenTripPlanner's documentation appears to discourage this in favor of using an accept-language request header. So that's what this PR does!

Asana Ticket: use the ´accept-language´ header in the OTP request

No action needed to continue using the "en" locale.

I'm actually not super sure what happens to OTP's output with other locales (last I tried locally I didn't notice a difference), but now we can find out! ✨

@thecristen thecristen requested review from a team as code owners September 4, 2025 20:48
@thecristen thecristen requested review from BrandonTR and removed request for a team September 4, 2025 20:48
@thecristen thecristen merged commit ab66b24 into main Sep 8, 2025
5 checks passed
@thecristen thecristen deleted the cbj/accept-language branch September 8, 2025 18:40
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.

2 participants