Welcome Guest, Not a member yet? Register   Sign In
{locale} placeholder in routes
#6

(06-09-2022, 11:57 PM)InsiteFX Wrote: It's probaliy best to use the language+region code for translations en-US etc.

I guess it depends on the use case. For me it was the easiest way to redirect to the english or french articles. I should probably modify my filter to keep the real locale (en-US, en-UK...) but the only difference I can think of is how the dates are displayed. Otherwise, everything should be the same in en-US vs. en-UK, or fr-FR vs. fr-CA.

(06-09-2022, 11:57 PM)InsiteFX Wrote: @includebeer, I have been working on your multi-language tutorial and have a working language drop down
with country flags working, I just have to clean-up the flags because they are in language not country.

Example: Japan is named jp in the flags css flie not by language code jp

Cool!  Cool
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
{locale} placeholder in routes - by webdeveloper - 06-08-2022, 06:23 AM
RE: {locale} placeholder in routes - by InsiteFX - 06-09-2022, 11:57 PM
RE: {locale} placeholder in routes - by includebeer - 06-10-2022, 12:36 PM
RE: {locale} placeholder in routes - by kenjis - 06-10-2022, 06:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB