• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-language support - How to change language in the view?

#7
Can't you pass the the locale for the language you want as the third param of the `lang()` calls and get the results you want?

Code:
echo lang('foo.bar', [], 'en');
echo lang('foo.bar', [], 'fr');
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


Messages In This Thread
RE: Multi-language support - How to change language in the view? - by kilishan - 07-01-2019, 08:03 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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