-
Notifications
You must be signed in to change notification settings - Fork 350
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
[🔥AUDIT🔥] Align variable names in SR strings for interactive graph #2131
Conversation
@@ -535,8 +535,8 @@ export const strings = { | |||
"The endpoint is at %(point1X)s comma %(point1Y)s and the ray goes through point %(point2X)s comma %(point2Y)s.", | |||
srRayGrabHandle: | |||
"Ray with endpoint %(point1X)s comma %(point1Y)s going through point %(point2X)s comma %(point2Y)s.", | |||
srRayEndpoint: "Endpoint at %(point1X)s comma %(point1Y)s.", |
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.
These use x
and y
in the PerseusStrings
type and must match.
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.
Ouch! Sorry about that!
…active graph type
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (ecc544b) and published it to npm. You Example: yarn add @khanacademy/perseus@PR2131 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2131 |
Size Change: -6 B (0%) Total Size: 1.47 MB
ℹ️ View Unchanged
|
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.
Landing this audit... 🙉🙈
@nishasy please give this a double-check when you have time.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/perseus@51.0.1 ### Patch Changes - [#2131](#2131) [`cb15921b8`](cb15921) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Fix localized string templates for two the ray interactive graph type ## @khanacademy/perseus-editor@17.3.2 ### Patch Changes - Updated dependencies \[[`cb15921b8`](cb15921)]: - @khanacademy/perseus@51.0.1 Author: khan-actions-bot Reviewers: jeremywiebe Required Reviewers: Approved By: jeremywiebe Checks: ⏭️ Publish npm snapshot, ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x) Pull Request URL: #2132
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.
@jeremywiebe This looks right to me. Sorry about this 😞
Summary:
Our localization infrastructure requires that the names of the placeholders in the
strings
variable (the object with the English strings) matches the variable names in the same-named string generator function that appears in thePerseusStrings
type.This PR fixes two new strings so that their placeholder variable names match:
srRayEndpoint
andsrRayTerminalPoint
.Issue: "none"
Test plan:
Do another release and integrate it again and rerun the localization script.