Skip to main content

One post tagged with "macros"

View All Tags

Introducing Context Directives

· 3 min read
Andrii Bodnar
Engineering Manager

One of Lingui's biggest ergonomic wins is keyless translations - you write the source string directly in your code and Lingui generates a stable ID for you. But that convenience quietly breaks down the moment you need context to prevent collisions across files. Suddenly you're writing context: "checkout" on every macro call in every file, which defeats the whole point.

social-card image