Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (30 sloc) 1.041 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Feature: Internationalization (I18n)

Cucumber supports feature files written in many different languages.
A feature written in another than the default language (English)
must start with a comment line in the following form
"# language: <code>"
where <code> refers to a two-letter (ISO 639-1) language code.

Scenario: A non-english Feature
Given the following feature:
"""
# language: de

Funktionalität: Ein Feature

Szenario: Ein Szenario
Wenn ich "A" sage
Dann muss ich auch "B" sagen
"""
When Cucumber runs the feature
Then the feature passes

Scenario: Only One Language per File
The "# language: <code>"-directive is ignored if it is not the
very first non-empty line in the file.

Given the following feature:
"""

Feature: some feature

# language: de
Scenario: some scenario
When I say "A"
Then I must say "B" as well
"""
When Cucumber runs the feature
Then the feature passes

Something went wrong with that request. Please try again.