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

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.

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


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

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

Theme © iAndrew 2016 - Forum software by © MyBB