-
Notifications
You must be signed in to change notification settings - Fork 74
feat: [IPR-1063] Add locale to editor state props #325
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
base: develop
Are you sure you want to change the base?
Conversation
const locale = detectLocale(Object.keys(locales)); | ||
|
||
let locale = 'en'; | ||
if (params.locale && Object.keys(locales).includes(params.locale)) { |
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 remember we talked about having a console.warn
if Object.keys(locales).includes(params.locale)
is false.
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 forgot about it. Will add it
Test report for scratch-vm 1 files ±0 770 suites ±0 1m 5s ⏱️ ±0s Results for commit a28aa46. ± Comparison against base commit 38044f4. This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Resolves
IPR-1063
Proposed Changes
Add locale to the editor state params that is passed from NGP. If such is not passed keep the old old approach of getting locale