-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add an env var to set the init locale code on startup #10081
Add an env var to set the init locale code on startup #10081
Conversation
c103a93
to
e939a2a
Compare
Codecov Report
@@ Coverage Diff @@
## features/i18n #10081 +/- ##
=================================================
+ Coverage 59.18% 59.24% +0.05%
=================================================
Files 180 180
Lines 5574 5582 +8
Branches 1050 1052 +2
=================================================
+ Hits 3299 3307 +8
Misses 1812 1812
Partials 463 463
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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, just a few things
|
||
if (!matchingLocale) { | ||
throw new Error( | ||
'Unknown locale code provided in the envrionment variable STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE' |
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.
environment*
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 !
What does it do?
Add an env var to set the init locale code on startup