Skip to content
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

Restore i18n._() support for radio widget's Choice component #986

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

jeremywiebe
Copy link
Collaborator

Summary:

While removing perseus-legacy from webapp (https://github.com/Khan/webapp/pull/19729/files) Adam G asked about the string removals. I assumed (incorrectly) that they were just due to removal of deprecated/unsupported features. It turns out that some were changes we've made to Perseus over time where we missed wrapping user-facing strings in i18n._() after a refactoring.

This PR restores the ones that I could identify by searching Perseus for the strings being removed in Khan/webapp#19729.

Issue: "none"

Test plan:

I searched each removed string in Khan/webapp#19729 in the Perseus repo. Each one that I found I ensured was now wrapped in i18n._() calls again.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Size Change: +19 B (0%)

Total Size: 817 kB

Filename Size Change
packages/perseus/dist/es/index.js 391 kB +19 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.1 kB
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 79.7 kB
packages/perseus-core/dist/es/index.js 908 B
packages/perseus-editor/dist/es/index.js 263 kB
packages/perseus-error/dist/es/index.js 878 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/pure-markdown/dist/es/index.js 3.77 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1502859) 63.51% compared to head (5ab4089) 64.72%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #986      +/-   ##
==========================================
+ Coverage   63.51%   64.72%   +1.21%     
==========================================
  Files         421      423       +2     
  Lines       96123    96366     +243     
  Branches     6253     8663    +2410     
==========================================
+ Hits        61049    62377    +1328     
+ Misses      35074    33989    -1085     

Impacted file tree graph

Files Coverage Δ
packages/perseus/src/widgets/radio/choice.tsx 97.54% <94.11%> (+0.04%) ⬆️

... and 70 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1502859...5ab4089. Read the comment docs.

@jeremywiebe jeremywiebe marked this pull request as ready for review February 9, 2024 17:18
@khan-actions-bot khan-actions-bot requested a review from a team February 9, 2024 17:18
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/eleven-colts-perform.md, packages/perseus/src/widgets/radio/choice.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@jeremywiebe jeremywiebe merged commit 585a3fe into main Feb 12, 2024
14 checks passed
@jeremywiebe jeremywiebe deleted the restore-i18n-strings branch February 12, 2024 22:06
jeremywiebe pushed a commit that referenced this pull request Feb 13, 2024
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-dev-ui@1.1.0

### Minor Changes

-   [#988](#988) [`bbdb3377`](bbdb337) Thanks [@benchristel](https://github.com/benchristel)! - Internal: Add more graph types to the dev UI

## @khanacademy/perseus@19.1.9

### Patch Changes

-   [#986](#986) [`585a3fe9`](585a3fe) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Wrap some radio widget strings that a learner would see in `i18n._()` calls so they can be localized.


-   [#987](#987) [`e4ca3c53`](e4ca3c5) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Move Graphie's addMouseLayer function directly onto class (avoid metaprogramming)


-   [#979](#979) [`9f2eafe4`](9f2eafe) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Improve types for Graphie's getMousePx and getMouseCoord functions


-   [#975](#975) [`36a5ebe1`](36a5ebe) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Add tests to cover Graphie's addMouseLayer() function - includes some related type improvements.

## @khanacademy/perseus-editor@4.1.9

### Patch Changes

-   Updated dependencies \[[`585a3fe9`](585a3fe), [`e4ca3c53`](e4ca3c5), [`9f2eafe4`](9f2eafe), [`36a5ebe1`](36a5ebe)]:
    -   @khanacademy/perseus@19.1.9

Author: khan-actions-bot

Reviewers: jeremywiebe

Required Reviewers:

Approved By: jeremywiebe

Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage, ⏭  Publish npm snapshot, ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Extract i18n strings (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ gerald

Pull Request URL: #990
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