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

feat: add literal string replacement support for react localizer util #17273

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

PatrykBuniX
Copy link
Contributor

Description

Adds a support for replacing string literal values in replaceReactComponents util. This will make it easier for us to migrate from dangerouslySetInnerHtml in cases we needed it to inject dynamic values into copy templates.

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.08%. Comparing base (4546ab6) to head (d50cbc7).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #17273      +/-   ##
==========================================
+ Coverage   46.05%   46.08%   +0.03%     
==========================================
  Files         747      747              
  Lines       24617    24632      +15     
  Branches     5627     5632       +5     
==========================================
+ Hits        11337    11352      +15     
  Misses      11856    11856              
  Partials     1424     1424              

@PatrykBuniX PatrykBuniX marked this pull request as ready for review April 16, 2024 08:05
@PatrykBuniX PatrykBuniX requested review from otto-the-bot and a team as code owners April 16, 2024 08:05
Copy link

sonarcloud bot commented Apr 16, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@atomrc atomrc left a comment

Choose a reason for hiding this comment

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

solid PR 😍

@PatrykBuniX PatrykBuniX merged commit 02fee5f into dev Apr 16, 2024
11 checks passed
@PatrykBuniX PatrykBuniX deleted the feat/react-localizer-replace-strings branch April 16, 2024 08:58
PatrykBuniX added a commit that referenced this pull request May 7, 2024
…#17273)

* feat: add literal string replacement support for react localizer util

* feat: support string literal inside the component

* refactor: improve naming

* doc: add a comment
PatrykBuniX added a commit that referenced this pull request May 7, 2024
* feat: add literal string replacement support for react localizer util (#17273)

* feat: add literal string replacement support for react localizer util

* feat: support string literal inside the component

* refactor: improve naming

* doc: add a comment

* refactor: readonly conversaiton indication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants