Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default locale #36

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ ENV nginx_root_directory=/var/www/html \
post_max_size=8M \
upload_max_filesize=2M \
zlib_output_compression=On \
date_timezone=UTC
date_timezone=UTC \
intl_default_locale=en_US
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ You can define the next environment variables to change values from NGINX and PH
| PHP8 | upload_max_filesize | 2M | Maximum size of an uploaded file. |
| 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. |
| 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. |
| 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) |

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

Expand Down
1 change: 1 addition & 0 deletions rootfs/etc/php83/conf.d/custom.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ post_max_size= $post_max_size
upload_max_filesize= $upload_max_filesize
zlib.output_compression= $zlib_output_compression
date.timezone= "$date_timezone"
intl.default_locale= "$intl_default_locale"
Loading