diff --git a/i18n/fr.xliff b/i18n/fr.xliff new file mode 100644 index 0000000..ff70303 --- /dev/null +++ b/i18n/fr.xliff @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Behat/DomainExtension/Context/DomainContext.php b/src/Behat/DomainExtension/Context/DomainContext.php index 2e26381..60e7e26 100644 --- a/src/Behat/DomainExtension/Context/DomainContext.php +++ b/src/Behat/DomainExtension/Context/DomainContext.php @@ -2,13 +2,14 @@ namespace Behat\DomainExtension\Context; +use Behat\Behat\Context\TranslatableContext; use Behat\Behat\Hook\Scope\BeforeStepScope; use Behat\MinkExtension\Context\RawMinkContext; /** * Provides pre-built step definitions for interacting with multiple domains. */ -class DomainContext extends RawMinkContext implements DomainAwareInterface +class DomainContext extends RawMinkContext implements DomainAwareInterface, TranslatableContext { private $domains; @@ -52,6 +53,16 @@ public function getDomainUrl() return $this->domainUrl; } + /** + * Returns list of definition translation resources paths + * + * @return array + */ + public static function getTranslationResources() + { + return glob(__DIR__.'/../../../../i18n/*.xliff'); + } + /** * Change the Mink Extension base url to the domain url * to allow Mink Contexts to read our domain url.