fluttercommunity/flutter_google_places

Autocomplete language parameter is not working as expected

atelog opened this issue · 1 comments

By providing the language parameter to PlacesAutocomplete it still shows results in different languages.

Reproduction:

  1. Provide it value to language parameter.
Prediction p = await PlacesAutocomplete.show(
    types: ['(cities)'],
    region: "it",
    context: context,
    apiKey: kGoogleApiKey,
    language: "it",
    components: [Component(Component.country, "it")],
  );
  1. Try to search in English, and you will still get valid results.
    Ex. "Rome" which is in english
    image
    or "Florența” which is in romanian
    image

This is Google Places API behavior.