-
Notifications
You must be signed in to change notification settings - Fork 27
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
Default locale #36
Conversation
WalkthroughThe pull request introduces modifications to the Dockerfile, README.md, and a PHP configuration file ( Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hello @erseco, I hope you are doing well. I follow up with a new pull request to add the intl. default_locale in PHP. With this setting, the docker image is even more customization and by default all stays the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
rootfs/etc/php83/conf.d/custom.ini (1)
16-16
: LGTM! Consider adding a descriptive comment.The
intl.default_locale
setting is correctly configured to use the environment variable.Consider adding a comment to explain the purpose of this setting:
+; Sets the default locale for PHP's internationalization functions intl.default_locale= "$intl_default_locale"
README.md (1)
172-172
: LGTM! Consider enhancing the documentation.The documentation for
intl_default_locale
is clear and consistent with the implementation.Consider adding:
- Examples of other common locales (e.g., 'fr_FR', 'de_DE', 'es_ES')
- Note about the impact on PHP's internationalization functions
- Link to a list of available locales
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
Dockerfile
(1 hunks)README.md
(1 hunks)rootfs/etc/php83/conf.d/custom.ini
(1 hunks)
🔇 Additional comments (1)
Dockerfile (1)
99-100
: LGTM! Verify locale availability in the container.
The addition of intl_default_locale=en_US
follows the existing environment variable pattern and uses a valid locale format.
Let's verify that the locale is available in the container:
Nice! Thanks for your help! |
Summary by CodeRabbit
New Features
intl_default_locale
to set the default locale for PHP, enhancing internationalization support.Documentation
README.md
with clear guidelines on the new locale configuration and multi-stage build examples for Composer.Configuration
intl.default_locale
setting in the PHP configuration to utilize the new environment variable for locale management.