Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module provides the Twig IntlExtension for Drupal, allowing you to use internationalization functions like `format_currency`, `format_date`, and `format_number` directly within your Twig templates. It resolves issues that arise when these functions are not available by default.

There's a known core issue when using Twig IntlExtension: #3419294: Custom Core Twig Filter "format_date" conflicts with twig/intl-extra

Provides the Twig IntlExtension (twig/intl-extra) in Drupal, so that Twig functions relying on it can be used in Twig templates.

For example:

(See https://github.com/twigphp/intl-extra for details)

You need this module, when you plan to use one of these Twig functions that point out:

This twig function is part of the IntlExtension which is not installed by default. Install it first: [...]

Installation

Simply install this module with its dependencies! No configuration needed,

composer require drupal/twig_intl && drush en twig_intl
Composer is needed to fetch the dependencies!

Alternatives:

Heavily inspired by the Twig Extensions module by @joelpittet - thank you!

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

Development proudly sponsored by German Drupal Friends & Companies:

webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (https://www.drowl.de)

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.0-rc3 Pre-release Feb 5, 2025