Skip to content

Commit

Permalink
Add option to set locale
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKermes committed Jun 12, 2024
1 parent 4339752 commit ad9622d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Features/Traits/Translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ trait Translations

private string $input;

/**
* @Given locale is set to :locale
* @Given localization is set to :locale
*/
public function setLocale(string $locale): void
{
$this->getContainer()->setLocale($locale);
}

/**
* @When I ask to translate :input
* @When I ask for translations of :input
Expand Down

0 comments on commit ad9622d

Please sign in to comment.