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

UI chrome should be localizable #744

Open
7 tasks
1ec5 opened this issue Jan 30, 2023 · 0 comments
Open
7 tasks

UI chrome should be localizable #744

1ec5 opened this issue Jan 30, 2023 · 0 comments
Labels

Comments

@1ec5
Copy link
Member

1ec5 commented Jan 30, 2023

Virtually all of the content in the Americana application is localizable, and much of it is already translated. However, major parts of the UI are still hard-coded in English:

  • GL JS controls1
  • Samples and Legend buttons
  • Map attribution2
  • Language switcher
  • Legend entries (other than the “Route markers” section)
  • “Fork me on GitHub”
  • Search box

To the extent that we need to maintain our own translation tables, there’s an implementation in #215 (comment) that we can lift pretty easily. For the time being, I don’t think we’ll have enough translatable strings to require a translation management system such as Transifex or Translatewiki.net, but that can happen after we have basic infrastructure in place for translations.

Footnotes

  1. When configuring the map, we can set the locale option to provide our own translations of these strings. Unfortunately, GL JS doesn’t provide translations of its own: https://github.com/mapbox/mapbox-gl-js/issues/12109#issuecomment-1195748154.

  2. Ideally, the metadata associated with each tileset would come with localized attribution strings, just as the tilesets provide localized versions of each feature’s name. However, the TileJSON format only supports a very basic format for attribution: Structured attribution mapbox/tilejson-spec#20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants