Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
Add i18n scenarios
Browse files Browse the repository at this point in the history
This is related to cucumber/cucumber-js#34.
Please note that this *will fail* with the current master
of cucumber/cucumber-js.
  • Loading branch information
ldegen authored and jbpros committed Mar 5, 2014
1 parent 7ea9147 commit 05b4fbc
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion i18n.feature
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
Feature: Internationalization (I18n)
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

0 comments on commit 05b4fbc

Please sign in to comment.