dazzle/behat-drupal-translations
Composer 安装命令:
composer require --dev dazzle/behat-drupal-translations
包简介
Allows you to use the original interface string in Drupal without worrying about the current language.
README 文档
README
This extension to Behat and the Drupal extension enables the power of translate interface into your steps.
Installation
Installation through composer:
composer require dazzle/behat-drupal-translations:dev-develop
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
- Originally developed by Olivier Jacquet and Kevin Thiels
统计信息
- 总下载量: 20.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-11-05