Baseflow / flutter-geocoding

A Geocoding plugin for Flutter
https://baseflow.com
MIT License
139 stars 71 forks source link

[Bug]: localization not working also setLocaleIdentifier ihas not been implementated #224

Closed NabeelAbid1812 closed 8 months ago

NabeelAbid1812 commented 8 months ago

Please check the following before submitting a new issue.

Please select affected platform(s)

Steps to reproduce

i,m facing issue when i change my mobile language and use placemarkFromCoordinates function with parameter localeIdentifier :'en' but it gives me a response in Arabic

Expected results

i,m facing issue when i change my mobile language and use placemarkFromCoordinates function with parameter localeIdentifier :'en' but it gives me a response in Arabic

Actual results

actual result should be in english

Code sample

final placemarks = await placemarkFromCoordinates(position.latitude, position.longitude,localeIdentifier: 'en');

Screenshots or video

Screenshots or video demonstration [Upload media here]

n/a

Version

2.2.2

Flutter Doctor output

[✓] Flutter (Channel stable, 3.13.6, on macOS 13.6 22G120 darwin-arm64, locale en-PK) • Flutter version 3.13.6 on channel stable at /Users/macbook/Flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ead455963c (6 months ago), 2023-09-26 18:28:17 -0700 • Engine revision a794cf2681 • Dart version 3.1.3 • DevTools version 2.25.0

TimHoogstrate commented 8 months ago

This is solved in version 3.0.0. You should set the locale first and then call the functions without the locale parameter.

kind regards,