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

feat(base-map): Add support for i18n on map controls #718

Merged

Conversation

amy-corson-ibigroup
Copy link
Contributor

Passes translated strings to MapLibre to override their default map controls.

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need all of these strings?

@amy-corson-ibigroup
Copy link
Contributor Author

Good point about the strings, I've removed the ones I'm pretty sure we don't use!

@amy-corson-ibigroup amy-corson-ibigroup removed their assignment Feb 29, 2024
ResetBearing: Reset bearing to north
ZoomIn: Zoom in
ZoomOut: Zoom out
ScaleControl:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the scale control get used? I don't see a scale on most maps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the "with optional controls" story, but we can always remove that scale from the map if it's not representative of how we use it?

Co-authored-by: Binh Dam <56846598+binh-dam-ibigroup@users.noreply.github.com>
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions to make i18n checks pass.

@amy-corson-ibigroup
Copy link
Contributor Author

Thanks for the help and the French translations, @binh-dam-ibigroup!

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpicks

@binh-dam-ibigroup
Copy link
Collaborator

@amy-corson-ibigroup Let me add partial translations as requested before merging.

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@amy-corson-ibigroup amy-corson-ibigroup added the BLOCKERS Blockers exist outside of otp-ui (e.g., backend, service, etc...) label Mar 20, 2024
@amy-corson-ibigroup amy-corson-ibigroup removed their assignment Mar 26, 2024
@amy-corson-ibigroup amy-corson-ibigroup removed the BLOCKERS Blockers exist outside of otp-ui (e.g., backend, service, etc...) label Apr 4, 2024
@amy-corson-ibigroup
Copy link
Contributor Author

@binh-dam-ibigroup @miles-grant-ibigroup translations have been provided. I'll merge today provided everything looks okay!

@amy-corson-ibigroup amy-corson-ibigroup merged commit 9522838 into opentripplanner:master Apr 8, 2024
2 checks passed
@amy-corson-ibigroup amy-corson-ibigroup deleted the i18n-base-map-controls branch April 8, 2024 14:34
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.

3 participants