nekromoff / bicycle-master-plan

Bicycle Master Plan is a bike map that allows visualizing cycling related data from different sources in multiple layers. Built heavily around data from OpenStreetMap, it allows full visual customization using CSS.
https://mapa.cyklokoalicia.sk/bratislava/public/
GNU General Public License v3.0
11 stars 0 forks source link

Allow language switching on the fly between available translations #21

Open pqhf5kd opened 3 years ago

pqhf5kd commented 3 years ago

I see that there is an English value file https://github.com/nekromoff/bicycle-master-plan/blob/master/public/translations/en.js

But I can't see a way to switched to English on the map.

Have I missed it or is it not yet implemented?

nekromoff commented 3 years ago

Hello, the default config/map.php (example) file contains ISO language code: 'language' => 'en', https://github.com/nekromoff/bicycle-master-plan/blob/master/config/map.example.php

The language/translation is based on that config value.

pqhf5kd commented 3 years ago

Are you planning on allowing users to switch between languages, independent of the site's config?

I would like to point foreigners and expats in Kosice, who don't speak Slovak, to 'Mapa cyklotrás' when they ask about what it's like to cycle here.

nekromoff commented 3 years ago

Thanks for the suggestion, it should be easy to implement.