In what URL segment do you have language? /en/admin/dashboard or /admin/en/dashboard?

Posted by Shimmi on Programmers See other posts from Programmers or by Shimmi
Published on 2013-11-13T15:50:57Z Indexed on 2013/11/13 16:14 UTC
Read the original article Hit count: 413

Filed under:

maybe you are thinking that this is another dump question about language in URL, but I hope it is not! I've red many articles on this, but non of them was dealing with "sections of site" (described bellow).

I am programming a new application platform in laravel/php and I am still not 100% convinced where to put language slug.

There are many places where you can put it - some of them are better some are worse:


My personal choice is to put language after the domain - so the first option in above list.

But what if you are in some special secion like admin or api? where do you put language then?




(in frontend it is left the same:

what do you preffer? what are cons and pros? One thing is using language in first segments is far more easier to programm than when it have some variants...

P.S. whould you recoment using only en, cs or do it in full power with cz-CZ, en-US ?

thanks for any thoughts!


© Programmers or respective owner

Related posts about localization

Related posts about url