• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Multi-language support (Project Update 2019.01.04)

#1
Will CI 4 support multiple languages via url out of the box?

Something like:



Code:
exmaple.com/en-US/controler
exmaple.com/en-GB/controler
exmaple.com/pl-PL/controler

or:
Code:
exmaple.com/en/controler
exmaple.com/pl/controler
Reply

#2
Already there. https://codeigniter4.github.io/CodeIgnit...#in-routes
Reply

#3
hi

what about
Code:
exmaple.com/en/books/
exmaple.com/it/libri/

?
Reply

#4
(05-16-2019, 05:07 AM)quasiperfect Wrote: hi

what about
Code:
exmaple.com/en/books/
exmaple.com/it/libri/

?

The post just above yours mentions the localization in routes, which has the example "http://example.com/fr/books".
Doesn't this already answer your question? What isn't clear?
Reply

#5
Probably not, because what he is talking about is that in English it's 'books' but in Italian its 'libri' - here both pointing to the same thing.
Reply

#6
ahhh - I didn't catch that, thanks.
@quasiperfect You could setup routing rules to achieve that, sort of, mapping "books" and "libri" to the same handler regardless of language, but if that is to happen on a language basis, you might have to set up routing groups, one per language.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.