geocoder-php / geocoder-php/Geocoder
Localization issue
Open
Nobody has claimed this yet.
question
- Dominant language
- PHP
- Stars
- 4k
- Forks
- 525
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Description
I've set the locale to english but still getting result in arabic.
$adapter_client = new Client();
$provider = new GoogleMaps($adapter_client, null, $api_key);
$geocoder = new StatefulGeocoder($provider);
$geocoder->setLocale('en');
Here's my output
"الأندلس،"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Client, GoogleMaps, and StatefulGeocoder entry points shown in the report, then reproduce the request using setLocale('en') and the provided output. Trace how the locale reaches the Google Maps request and verify that the returned geocoding result is in English rather than Arabic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100