Skip to content

store block param localization in translation cache#10593

Merged
riknoll merged 1 commit intomasterfrom
dev/riknoll/handler-param-block-loc
May 20, 2025
Merged

store block param localization in translation cache#10593
riknoll merged 1 commit intomasterfrom
dev/riknoll/handler-param-block-loc

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented May 20, 2025

in my earlier callback param localization pr, i mistakenly assumed that all block translation keys were included in the lookup table for rlf(). well, turns out they aren't, instead they get crammed into the symbol info of the corresponding function. that doesn't quite work for my scenario since i need them to be globally available

this pr works around that issue by storing them in our global translation cache. while i was fixing this, i also went ahead and did a little refactor to reduce the coupling between the plugin and pxt and also added some logic to lookup the translation for the containing block which fixes the issue i mentioned here

@riknoll riknoll requested a review from a team May 20, 2025 19:51
@riknoll riknoll merged commit 7515e29 into master May 20, 2025
20 checks passed
@riknoll riknoll deleted the dev/riknoll/handler-param-block-loc branch May 20, 2025 23:51
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