Context
Context. Stock Twig's trans filter needs an extension, and this platform's Twig environment takes no extensions from a site: a theme cannot register one. The translator itself is there, though: every template receives it as __, and the platform's own Twig templates translate with __.translate(). Translations live in XLIFF files in your repository, one per domain and language, exactly as on a Smarty site.