thermondo / pytest-translations

test translation files with pytest
Other
17 stars 3 forks source link

Ignore ­ entity because it's only meant for optional word breaks #50

Closed anneFly closed 3 years ago

anneFly commented 3 years ago

The ­ entity (soft hyphen) is an invisible entity that simply marks a place where the browser could make a word break and insert a hyphen if needed. This is nice for long words that might break the desired layout. When using ­ in translations the word should be treated as if it was without it during spell checking. E.g. Reise­kosten­rück­erstattung should be treated as Reisekostenrückerstattung.

This PR erases any ­ entities before spell chacking.

codecov[bot] commented 3 years ago

Codecov Report

Merging #50 (0c133b2) into master (4d65896) will increase coverage by 0.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   94.11%   94.14%   +0.03%     
==========================================
  Files           6        6              
  Lines         187      188       +1     
==========================================
+ Hits          176      177       +1     
  Misses         11       11              
Impacted Files Coverage Δ
pytest_translations/po_spelling.py 89.47% <100.00%> (+0.18%) :arrow_up:

Continue to review full report at Codecov.

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

syphar commented 3 years ago

@anneFly I also released a new version (3.1.0), feel free to upgrade the app you need it to be in.

Otherwise it will be in dependabot tomorrow morning