lundi 2 avril 2018

Laravel & Localization Country + Currency + Language + Timezone

We have currently our Project just in Switzerland, like

Example: yourfirm.com - Main Language; German - Second Languages: English & Turkish - Currency: Swiss francs

When User gets to the Page by default he gets the Language German, Swiss francs

We would like to add it as follow: New Countries: Turkey, Main Language: Turkish, Currency: Turkish Lira Germany & Austria, Main Language: German, Currency: Euro Rest of Europe: Main Language: English, Currency: Euro Rest of World: Main Language: English, Currency: USD

So we was thinking to make for each country something like: When user access yourfirm.com we could determine over his IP the right location (Country, Timezone, Language, Currency) and we could show the right page for his country. We also have considered to manage it like: for each country from yourfirm.com it would go for example for Germany (DE) -> yourfirm.com/de Language: German, Currency: €

But we don't know how to solve it exactly: We made some research but couldn't find the right solution. Would be great if someone could help us and maybe also try to give us as well an example code.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire