vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
318 stars 40 forks source link

Feature: support gherkin localization #207

Closed Grummfy closed 3 months ago

Grummfy commented 3 months ago

The problem When you want to use gherkin synthax in a other language than english it fails

A solution Allow the parser (I know it's kind a lot of work) to play with the language like defined there https://cucumber.io/docs/gherkin/languages/

vitalets commented 3 months ago

Localization should work. Could you provide an example code and error message?

Grummfy commented 3 months ago

Arf, I miss this example. Sorry.

It's working well. Thanks to show it.

I would suggest to add it in the documentation.

vitalets commented 3 months ago

Added to docs: https://vitalets.github.io/playwright-bdd/#/writing-features/i18n And a config field language that was also missing: https://vitalets.github.io/playwright-bdd/#/configuration/options?id=language

thank you!