Cucumber languages » History » Version 1

Version 1/2 - Next » - Current version
Tido, 04/08/2016 11:20 AM


Cucumber languages

When you really need to capture what the business owner is saying

$ cucumber --i18n help
...
      | en        | English             | English           |
      | en-Scouse | Scouse              | Scouse            |
      | en-au     | Australian          | Australian        |
      | en-lol    | LOLCAT              | LOLCAT            |
      | en-old    | Old English         | Englisc           |
      | en-pirate | Pirate              | Pirate            |
      | en-tx     | Texan               | Texan             |
...

$ cucumber --i18n en
      | feature          | "Feature", "Business Need", "Ability"   |
      | background       | "Background"                            |
      | scenario         | "Scenario"                              |
      | scenario_outline | "Scenario Outline", "Scenario Template" |
      | examples         | "Examples", "Scenarios"                 |
      | given            | "* ", "Given "                          |
      | when             | "* ", "When "                           |
      | then             | "* ", "Then "                           |
      | and              | "* ", "And "                            |
      | but              | "* ", "But "                            |
      | given (code)     | "Given"                                 |
      | when (code)      | "When"                                  |
      | then (code)      | "Then"                                  |
      | and (code)       | "And"                                   |
      | but (code)       | "But"                                   |

$ cucumber --i18n en-Scouse
      | feature          | "Feature"                                    |
      | background       | "Dis is what went down"                      |
      | scenario         | "The thing of it is"                         |
      | scenario_outline | "Wharrimean is"                              |
      | examples         | "Examples"                                   |
      | given            | "* ", "Givun ", "Youse know when youse got " |
      | when             | "* ", "Wun ", "Youse know like when "        |
      | then             | "* ", "Dun ", "Den youse gotta "             |
      | and              | "* ", "An "                                  |
      | but              | "* ", "Buh "                                 |
      | given (code)     | "Givun", "Youseknowwhenyousegot"             |
      | when (code)      | "Wun", "Youseknowlikewhen"                   |
      | then (code)      | "Dun", "Denyousegotta"                       |
      | and (code)       | "An"                                         |
      | but (code)       | "Buh"                                        |

$ cucumber --i18n en-au
      | feature          | "Pretty much"                               |
      | background       | "First off"                                 |
      | scenario         | "Awww, look mate"                           |
      | scenario_outline | "Reckon it's like"                          |
      | examples         | "You'll wanna"                              |
      | given            | "* ", "Y'know "                             |
      | when             | "* ", "It's just unbelievable "             |
      | then             | "* ", "But at the end of the day I reckon " |
      | and              | "* ", "Too right "                          |
      | but              | "* ", "Yeah nah "                           |
      | given (code)     | "Yknow"                                     |
      | when (code)      | "Itsjustunbelievable"                       |
      | then (code)      | "ButattheendofthedayIreckon"                |
      | and (code)       | "Tooright"                                  |
      | but (code)       | "Yeahnah"                                   |

$ cucumber --i18n en-lol
      | feature          | "OH HAI"           |
      | background       | "B4"               |
      | scenario         | "MISHUN"           |
      | scenario_outline | "MISHUN SRSLY"     |
      | examples         | "EXAMPLZ"          |
      | given            | "* ", "I CAN HAZ " |
      | when             | "* ", "WEN "       |
      | then             | "* ", "DEN "       |
      | and              | "* ", "AN "        |
      | but              | "* ", "BUT "       |
      | given (code)     | "ICANHAZ"          |
      | when (code)      | "WEN"              |
      | then (code)      | "DEN"              |
      | and (code)       | "AN"               |
      | but (code)       | "BUT"              |

$ cucumber --i18n en-old
      | feature          | "Hwaet", "Hwæt"                                            |
      | background       | "Aer", "Ær"                                                |
      | scenario         | "Swa"                                                      |
      | scenario_outline | "Swa hwaer swa", "Swa hwær swa"                            |
      | examples         | "Se the", "Se þe", "Se ðe"                                 |
      | given            | "* ", "Thurh ", "Þurh ", "Ðurh "                           |
      | when             | "* ", "Tha ", "Þa ", "Ða "                                 |
      | then             | "* ", "Tha ", "Þa ", "Ða ", "Tha the ", "Þa þe ", "Ða ðe " |
      | and              | "* ", "Ond ", "7 "                                         |
      | but              | "* ", "Ac "                                                |
      | given (code)     | "Thurh", "Þurh", "Ðurh"                                    |
      | when (code)      | "Tha", "Þa", "Ða"                                          |
      | then (code)      | "Tha", "Þa", "Ða", "Thathe", "Þaþe", "Ðaðe"                |
      | and (code)       | "Ond", "7"                                                 |
      | but (code)       | "Ac"                                                       |

$ cucumber --i18n en-pirate
      | feature          | "Ahoy matey!"            |
      | background       | "Yo-ho-ho"               |
      | scenario         | "Heave to"               |
      | scenario_outline | "Shiver me timbers"      |
      | examples         | "Dead men tell no tales" |
      | given            | "* ", "Gangway! "        |
      | when             | "* ", "Blimey! "         |
      | then             | "* ", "Let go and haul " |
      | and              | "* ", "Aye "             |
      | but              | "* ", "Avast! "          |
      | given (code)     | "Gangway"                |
      | when (code)      | "Blimey"                 |
      | then (code)      | "Letgoandhaul"           |
      | and (code)       | "Aye"                    |
      | but (code)       | "Avast"                  |

$ cucumber --i18n en-tx
      | feature          | "Feature"            |
      | background       | "Background"         |
      | scenario         | "Scenario"           |
      | scenario_outline | "All y'all"          |
      | examples         | "Examples"           |
      | given            | "* ", "Given y'all " |
      | when             | "* ", "When y'all "  |
      | then             | "* ", "Then y'all "  |
      | and              | "* ", "And y'all "   |
      | but              | "* ", "But y'all "   |
      | given (code)     | "Givenyall"          |
      | when (code)      | "Whenyall"           |
      | then (code)      | "Thenyall"           |
      | and (code)       | "Andyall"            |
      | but (code)       | "Butyall"            |