wagtail-localize icon indicating copy to clipboard operation
wagtail-localize copied to clipboard

Normalize whitespace in StringTranslation data processing

Open Azadron228 opened this issue 7 months ago • 2 comments

Fix: Normalize Strings Before Insertion and Querying

Issue Reference: #838

This PR addresses an issue where certain string segments reset after synchronization and publishing due to inconsistencies in how they are stored and queried from templates.

Azadron228 avatar Apr 03 '25 10:04 Azadron228

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.14%. Comparing base (5cacf24) to head (eff4eeb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #863   +/-   ##
=======================================
  Coverage   93.13%   93.14%           
=======================================
  Files          47       47           
  Lines        4241     4244    +3     
  Branches      550      550           
=======================================
+ Hits         3950     3953    +3     
  Misses        174      174           
  Partials      117      117           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Apr 03 '25 11:04 codecov-commenter

Hi, could you please add tests?

zerolab avatar Apr 03 '25 13:04 zerolab