Skip to content

default placeholder text should be localized if language option provided #150

Closed

Description

@vfoss

The placeholder text in the search bar for the geocoder remains "Search" (in English), even when the language of the map is changed, as in
let geocoder = new MapboxGeocoder({accessToken: mapboxgl.accessToken, language: 'es' });. I cannot figure out a clean way to change it.

Activity

  1. andrewharvey commented on Apr 13, 2018

    @andrewharvey
    Collaborator

    @vfoss You can set it with the placeholder option.

    But let's leave this ticket open to make the default placeholder set by the first language if provided.

  2. changed the title [-]Changing geocoder language does not change the word "Search"[/-] [+]default placeholder text should be localized if language option provided[/+] on Apr 13, 2018
  3. added this to the v4.0.0 milestone on Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions