nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
748 stars 105 forks source link

set Header accept-language=locale does not work #5

Closed know-that closed 2 years ago

know-that commented 2 years ago

image

know-that commented 2 years ago

My API must use \Nnjeim\World\Http\Middleware\Localization::class

nnjeim commented 2 years ago

@know-that The package world is using it's own middleware Nnjeim\World\Http\Middleware\Localiztion I am sharing with you the result of postman requests. 1- the locale should be set in the header. 2- Only the countries list is localized. if you know of a source of localized cities please share. 3- If you need to use your own middleware for localization you might consider forking the package and modifying this part.

At last i thank you for your input and looking forward for your contribution. Screenshot 2021-11-12 at 05 55 28 Screenshot 2021-11-12 at 05 54 52