CodeIgniter Forums
define default locale in .env - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: define default locale in .env (/thread-70296.html)



define default locale in .env - gabpnr - 03-21-2018

Hello guys,

can I suggest a small modification of the method detectLocale (IncomingRequest class) to be able to define the default locale in the .env file ? (only in the case where it is not defined in the conf file App.php)

What do you think ? 

(I develop it for my usage, so i can put it on github)