Skip to content

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 05 Jun 08:27

What's Changed

Added

  • Typography-aware translation helpers _xt / __t / _nt / _nxt. Same signatures as the WP _x / __ / _n / _nx originals — _xt/_nxt require context and _nt/_nxt require number (no silent defaults that could mask a missing required argument) — but the translated result is piped through |typography, so long-form copy gets consistent typographic treatment without remembering |typography on every callsite (_x_xt is a one-character opt-in). Each composes via getFunction()/getFilter()->getCallable() at call time, so the project's real translator (WP _x() etc.) and tuned typography settings win automatically; is_safe: ['html'] mirrors the filter's contract. The WP-production (Timber) and Drupal sides land in parisek/timber-kit#42 and parisek/drupal-kit#87 with the same four signatures, so authoring stays portable across CMSes. (#21)

Pull Requests

  • #40 — feat: typography-aware translation helpers _xt/__t/_nt/_nxt (#21)
  • #41 — test: strengthen helper precedence + parser/CLI assertions (review follow-ups)

Full Changelog: v0.4.3...v0.4.4