...

/

Adding Localization Support to the Gherkin Parser

Adding Localization Support to the Gherkin Parser

Learn how to add localization support to the Gherkin parser.

We'll cover the following...

The Norwegian sample feature

One of the more interesting aspects of the Gherkin language is the fact that the language itself supports localization, which our parser currently will not handle that well. Consider the code below, which is a sample feature test written in Norwegian:

Press + to interact
Funksjonalitet: Gjett et ord
Eksempel: Ordmaker starter et spill
Når Ordmaker starter et spill
Så må Ordmaker vente på at Gjetter blir med
Eksempel: Gjetter blir med
Gitt at Ordmaker har startet et spill med ordet "bløtt"
Når Gjetter blir med på Ordmakers spill
Så må Gjetter gjette et ord på 5 bokstaver

If ...