-
Notifications
You must be signed in to change notification settings - Fork 30
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
ENH Explicitly set i18n locale to en_US for supported modules #295
ENH Explicitly set i18n locale to en_US for supported modules #295
Conversation
This will affect project behat tests as well (not common but they do exist) - please make sure to add a quick note about this in the 5.4 changelog. |
caaa8ef
to
ea287f8
Compare
ea287f8
to
5f3f63c
Compare
i18n::config()->set('default_locale', 'en_US'); | ||
i18n::set_locale('en_US'); |
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.
Is the kernel booted by this stage? Will this work for the in-browser test instances which boot separate kernels from the one running the CLI instance?
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.
I think so though honestly I don't know. On my local which uses a headless chrome inside the docker container it seems to works fine i.e. broken behat tests linked to in the description now pass, and it also works fine on CI which is a similar sort of setup.
6760344
to
c36e546
Compare
c36e546
to
34d29bb
Compare
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.
LGTM
Failing CI unrelated (See silverstripe/silverstripe-framework#11576)
Issue silverstripe/.github#357
Similar to - using 3.x-dev of cwp-core causes the default locale to be en_GB instead of en_US
Fixes behat tests that break because of this e.g. https://github.com/creative-commoners/recipe-kitchen-sink/actions/runs/12879104438/job/35906088458
After merging, create 5.5 branch and tag 5.5.0
Needs silverstripe/silverstripe-framework#11576 merged for unit tests to pass
CI sink run with this PR https://github.com/creative-commoners/recipe-kitchen-sink/actions/runs/12938896222 - broken userforms behat is unrelated