Welcome Guest, Not a member yet? Register   Sign In
Dynamically changing supported languages
#1

In the project I have developed, languages can be added or removed from the management panel.

How can I do I want to dynamically change the $supportedLocales in the app.php file.
Reply
#2

Same question for me too, did you find a solution? or does anyone have a solution to this?

Thanks
Reply
#3

Have you tried implicit registrars? I never tried it, but it looks like it’s used to override the global configuration programmatically: http://codeigniter.com/user_guide/genera...registrars
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply
#4

config("APP")->supportedLocales = [any lang array you need];
Reply




Theme © iAndrew 2016 - Forum software by © MyBB