Skip to content

Conversation

@connorjclark
Copy link
Collaborator

refactor/follow-up of #16364

We should have the ability to re-use functionality from TE, even if it deals with localizing strings. This PR adds the ability to do that.

ref #16323

@connorjclark connorjclark requested a review from a team as a code owner March 4, 2025 00:17
@connorjclark connorjclark requested review from adamraine and removed request for a team March 4, 2025 00:17
static localizeInsights(insightSets) {
static localizeFunction(str_, fn) {
return (...args) => this.localize(str_, fn(...args));
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localizeFunction is pretty much the only addition to this file. Everything else is shuffling code around.

@connorjclark connorjclark merged commit a0643e5 into main Mar 4, 2025
27 checks passed
@connorjclark connorjclark deleted the te-localize-fn branch March 4, 2025 00:36
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.

2 participants