Skip to content

Commit bda29b5

Browse files
authored
Default locale (#36)
* add default_local * Update Dockerfile with intl_default_locale * Update README.md with default_locale
1 parent c2ef703 commit bda29b5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ ENV nginx_root_directory=/var/www/html \
9696
post_max_size=8M \
9797
upload_max_filesize=2M \
9898
zlib_output_compression=On \
99-
date_timezone=UTC
99+
date_timezone=UTC \
100+
intl_default_locale=en_US

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ You can define the next environment variables to change values from NGINX and PH
169169
| PHP8 | upload_max_filesize | 2M | Maximum size of an uploaded file. |
170170
| PHP8 | zlib_output_compression | On | Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. |
171171
| PHP8 | date_timezone | UTC | Sets the PHP timezone configuration (date.timezone) in custom.ini. Accepts standard PHP timezone identifiers (e.g., 'America/New_York', 'Europe/London'). See [PHP timezones](https://www.php.net/manual/en/timezones.php) for valid values. |
172+
| PHP8 | intl_default_locale | en_US | If you want to change the [PHP locale](https://www.php.net/manual/en/class.locale.php) for the entire application or server globally (e.g. in php.ini), you can set the intl.default_locale directives (e.g. en_US or de_DE) |
172173

173174
_Note; Because `-v` requires an absolute path I've added `pwd` in the example to return the absolute path to the current directory_
174175

rootfs/etc/php83/conf.d/custom.ini

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ post_max_size= $post_max_size
1313
upload_max_filesize= $upload_max_filesize
1414
zlib.output_compression= $zlib_output_compression
1515
date.timezone= "$date_timezone"
16+
intl.default_locale= "$intl_default_locale"

0 commit comments

Comments
 (0)