Permalink
Browse files

Add i18n scenarios

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...
1 parent 7ea9147 commit 05b4fbced93245f30393a21a21dd7b23472816f1 @ldegen ldegen committed with jbpros Feb 21, 2014
Showing with 39 additions and 1 deletion.
  1. +39 −1 i18n.feature
View
40 i18n.feature
@@ -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.