geocoder-php / geocoder-php/Geocoder

Localization issue

Open
#1,144 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.