PHPackages                             dazzle/behat-drupal-translations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. dazzle/behat-drupal-translations

ActiveBehat-extension[Localization &amp; i18n](/categories/localization)

dazzle/behat-drupal-translations
================================

Allows you to use the original interface string in Drupal without worrying about the current language.

223.3k↓54.8%3[1 issues](https://github.com/dazzletheweb/behat-drupal-translations/issues)PHP

Since May 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/dazzletheweb/behat-drupal-translations)[ Packagist](https://packagist.org/packages/dazzle/behat-drupal-translations)[ RSS](/packages/dazzle-behat-drupal-translations/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Behat Drupal Translations
=========================

[](#behat-drupal-translations)

This extension to Behat and the Drupal extension enables the power of translate interface into your steps.

Installation
------------

[](#installation)

Installation through composer:

```
composer require dazzle/behat-drupal-translations:dev-develop

```

Usage
-----

[](#usage)

In your Behat config YAML file add following part in the 'extensions':

```
Dazzle\DrupalTranslations\Extension: ~

```

Syntax:

```
string|t
string#context|t

```

Example steps:

```
...
And I press the "Pay|t" button
Then I should see the heading "Payment confirmation|t"
Then I should see the error message "Payment amount should be greater that @amount|1.000|t"
When I click "My payments#payments|t"
Then I should see the heading "My payments|t"
...

```

In the background this extension will use the current language and lookup the translation.

Credits
-------

[](#credits)

- Originally developed by [Olivier Jacquet](https://github.com/ojacquet) and [Kevin Thiels](https://github.com/Novitsh)

[www.dazzle.be](https://www.dazzle.be/?ref=github-drupal-translations)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/296ee2fbf0a8ae03aec878637451317bb17b975c6bd3f302685f2bcfad0e739d?d=identicon)[Novitsh](/maintainers/Novitsh)

---

Top Contributors

[![Novitsh](https://avatars.githubusercontent.com/u/5877591?v=4)](https://github.com/Novitsh "Novitsh (11 commits)")[![juanjol](https://avatars.githubusercontent.com/u/4212917?v=4)](https://github.com/juanjol "juanjol (2 commits)")[![dwb17](https://avatars.githubusercontent.com/u/5129274?v=4)](https://github.com/dwb17 "dwb17 (1 commits)")

### Embed Badge

![Health badge](/badges/dazzle-behat-drupal-translations/health.svg)

```
[![Health](https://phpackages.com/badges/dazzle-behat-drupal-translations/health.svg)](https://phpackages.com/packages/dazzle-behat-drupal-translations)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
