08-14-2020, 07:46 AM
Hi all,
I'm trying to set the $supportedLocales into the .env file and it's not working.
$supportedLocales comes as an array, so in the config file, it sould be in, for example :
But it seems that the .env file in CodeIgniter does not support arrays, am I right?
I've tried various solutions, but none of them worked:
Any ideas?
I'm trying to set the $supportedLocales into the .env file and it's not working.
$supportedLocales comes as an array, so in the config file, it sould be in, for example :
PHP Code:
public $supportedLocales = ['en', 'fr'];
But it seems that the .env file in CodeIgniter does not support arrays, am I right?
I've tried various solutions, but none of them worked:
Code:
app.supportedLocales = en,fr
app.supportedLocales = 'en,fr'
app.supportedLocales = ['en','fr']
app.supportedLocales = "['en','fr']"
app.supportedLocales = '["en","fr"]'
Any ideas?