From df06448942b87910596f30cafc7aec619797b84a Mon Sep 17 00:00:00 2001 From: Luciano Jesus Lima Date: Thu, 31 Oct 2019 16:50:32 -0300 Subject: [PATCH] Fix Gherkin language execution parameters --- content/docs/gherkin/reference.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/content/docs/gherkin/reference.md b/content/docs/gherkin/reference.md index 6a09e528..4876151c 100644 --- a/content/docs/gherkin/reference.md +++ b/content/docs/gherkin/reference.md @@ -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 ``` To list the keywords of a particular language, use the language code: ```shell -cucumber --i18n +cucumber --i18n-keywords ``` 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.