Skip to content

Conversation

MiroslavDionisiev
Copy link
Contributor

@MiroslavDionisiev MiroslavDionisiev commented Sep 23, 2025

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

Copy link

github-actions bot commented Sep 23, 2025

Test report for scratch-gui

  2 files  ±0   61 suites  ±0   9m 16s ⏱️ ±0s
389 tests ±0  380 ✅ ±0  9 💤 ±0  0 ❌ ±0 
407 runs  ±0  398 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit a28aa46. ± Comparison against base commit a971995.

♻️ This comment has been updated with latest results.

const locale = detectLocale(Object.keys(locales));

let locale = 'en';
if (params.locale && Object.keys(locales).includes(params.locale)) {
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link

github-actions bot commented Sep 24, 2025

Test report for scratch-render

  1 files  ±0   55 suites  ±0   2s ⏱️ ±0s
209 tests ±0  209 ✅ ±0  0 💤 ±0  0 ❌ ±0 
279 runs  ±0  279 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a28aa46. ± Comparison against base commit 38044f4.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 24, 2025

Test report for scratch-svg-renderer

  1 files  ±0   60 suites  ±0   0s ⏱️ ±0s
124 tests ±0  124 ✅ ±0  0 💤 ±0  0 ❌ ±0 
276 runs  ±0  275 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit a28aa46. ± Comparison against base commit 38044f4.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 24, 2025

Test report for scratch-vm

    1 files  ±0    770 suites  ±0   1m 5s ⏱️ ±0s
1 686 tests ±0  1 686 ✅ ±0   0 💤 ±0  0 ❌ ±0 
4 891 runs  ±0  4 861 ✅ ±0  30 💤 ±0  0 ❌ ±0 

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.
test/unit/blocks_control.js > wait ‑ Wait block ended too early: 10 < 10 - 16.666666666666668
test/unit/blocks_control.js > wait ‑ Wait block ended too late: 10 > 10 + 333.3333333333333
test/unit/blocks_control.js > wait ‑ Wait block ended too early: 12 < 10 - 16.666666666666668
test/unit/blocks_control.js > wait ‑ Wait block ended too late: 12 > 10 + 333.3333333333333

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants