WordPress / wporg-main-2022

A block-based child theme for WordPress.org, plus local environment
62 stars 22 forks source link

Don't translate relative links #393

Closed dd32 closed 4 months ago

dd32 commented 4 months ago

The parser already excludes anchor links, such as #main but includes root-relative and page-relative urls.

These likely don't need to be translated, and probably shouldn't be. These probably shouldn't usually exist in the source-content, but have benefits, such as being untranslated after this change.

Example changes included.

How to test the changes in this Pull Request:

  1. yarn build:patterns
  2. Test.
dd32 commented 4 months ago

I'm assuming the test failure is related

100%, that issue is now resolved, so I've re-run the unit tests and they're now passing.