You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The paid GeoIP city database from Maxmind often doesn't hold translations for cities. The IP address 88.162.113.13 is located in Les Angles, France. Here are the lookup results:
As you see, no city name is returned when a French city is queried with locale "fr", however, it is returned with locale "en". The consumer of your gem can only deal with this situation by performing a second lookup. Not so good!
Would it be possible to add a fallback setting such as:
GeoIP2::fallback_locale 'en'
If set, a lookup which finds a city (city_geoname_id is present) but no city name in the queried locale returns the city name in the fallback locale.
The text was updated successfully, but these errors were encountered:
The paid GeoIP city database from Maxmind often doesn't hold translations for cities. The IP address
88.162.113.13
is located in Les Angles, France. Here are the lookup results:As you see, no city name is returned when a French city is queried with locale "fr", however, it is returned with locale "en". The consumer of your gem can only deal with this situation by performing a second lookup. Not so good!
Would it be possible to add a fallback setting such as:
If set, a lookup which finds a city (city_geoname_id is present) but no city name in the queried locale returns the city name in the fallback locale.
The text was updated successfully, but these errors were encountered: