Skip to content

Localization for City names and country names #172

Description

@cwbsl

Firstly I wanted to say thank you for this great library!

Now my question is, if there is a way to pass a language code to the request to get the city and country name in a specific language?
So for example instead of Zurich / Switzerland I want to get Zürich / Schweiz or instead of Dure / Germany I want to get Düren / Deutschland. I use Maxmind GeoIP databases which work fine but I always seem to get the result in English.
It could look something like this maybe:

$options = ['lang' => 'de'];
$position = Location::get($ipAddress, $options);

According to MaxMind's documentation they have the names in different languages available: https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions