Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Twig IntlExtension

Security covered Under active development 107 sites

Part of the Twig ecosystem · 43 projects

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)

Ask your assistant about Twig IntlExtension

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc3 Pre-release 10–11 Feb 5, 2025
1.0.0-rc2 Pre-release 10 Jan 9, 2024
1.0.0-rc1 Pre-release 10 Jan 9, 2024
1.0.x-dev Dev 10–11 Jan 9, 2024