-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filters are hardcoded in english #169
Comments
As far as I can tell, this RoleFilter is something that was invented by Behat, with no equivalent in Cucumber. So on their side, they don't have any need for i18n for this. @seblaz there is a |
As it's not part of the gherkin (it's part of our stuff) we could have it in the localist translations in Behat/Behat somehow? |
I think the whole Tag expressions would make sense to implement as a dedicated package too (maybe semi-generated in cucumber too as for other languages) rather than implementing that inside the TagFilter directly (moved to Behat or no). |
I imagine it's done this way because in theory a more complex Loader (e.g. coming from a web service or database) would benefit from filtering at the source. |
@ciaranmcnulty Behat won't expose filters to the loader directly as far as I remember. They are only used later. |
Oh, huh true |
Hi!
I just noticed that the filters (
Behat\Gherkin\Filter\RoleFilter
for example) has theas an
string hardcoded. This makes it imposible to use some role-based features in other languages.Update:
It looks like the only filter with hardcoded strings is the RoleFilter.
The text was updated successfully, but these errors were encountered: