Localization issue

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api, localization

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.

Description

question

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

"الأندلس،"

Dominant language
PHP
Stars
4k
Forks
525
Avg merge
8m
Merged PRs (30d)
1

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.

More from geocoder-php/Geocoder

All issues in geocoder-php/Geocoder

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.