定制 dazzle/behat-drupal-translations 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

www.dazzle.be

统计信息

  • 总下载量: 20.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-11-05