Support for additional locales in PHP-FPM (#1976)

This commit is contained in:
Ion Jaureguialzo Sarasola
2019-02-14 14:52:40 +01:00
committed by Shao Yu-Lung (Allen)
parent e0d7229e95
commit 1286b7ef06
4 changed files with 33 additions and 0 deletions

View File

@ -1300,6 +1300,19 @@ We also recommend [setting the timezone in Laravel](http://www.camroncade.com/ma
<br>
<a name="Add locales to PHP-FPM"></a>
## Add locales to PHP-FPM
To add locales to the container:
1 - Open the `.env` file and set `PHP_FPM_INSTALL_ADDITIONAL_LOCALES` to `true`.
2 - Add locale codes to `PHP_FPM_ADDITIONAL_LOCALES`.
3 - Re-build your PHP-FPM Container `docker-compose build php-fpm`.
4 - Check enabled locales with `docker-compose exec php-fpm locale -a`