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 10s ⏱️ +10s
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 38044f4.

♻️ 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 comment has been updated with latest results.

@MiroslavDionisiev MiroslavDionisiev added this pull request to the merge queue Oct 9, 2025
Merged via the queue into develop with commit dba0622 Oct 9, 2025
31 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants