Skip to content
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

Fix Gherkin language execution parameters #412

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions content/docs/gherkin/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,22 +442,29 @@ In order to allow Gherkin to be written in a number of languages, the keywords h

### List translation options
You can get information about the translations from the command line.
Note: 'cucumber' command may be different over code languages. ex. for Node.js is 'cucumber-js'

To see a listing of available languages:
```shell
cucumber --i18n help
cucumber --i18n-languages help
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this option is named differently across platforms, so changing from --i18n to --i18n-languages makes this incorrect for cucumber-ruby and cucumber-jvm.

I think we should simply get rid of the option and refer users to the docs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

To list the keywords of a particular language, use the language code:
```shell
cucumber --i18n <language_code>
cucumber --i18n-keywords <language_code>
```

For example, to see the keywords in French:
```shell
cucumber --i18n fr
cucumber --i18n-keywords fr
```

Finally, to run the test using a particular language, use 'language' parameter and language code:
```shell
cucumber --language fr
```


### Overview
You can find all translation of Gherkin [on GitHub](https://github.com/cucumber/cucumber/blob/master/gherkin/gherkin-languages.json).
This is also the place to add or update translations.
Expand Down