Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language support #265

Open
aurnoi1 opened this issue Feb 13, 2022 · 3 comments
Open

Language support #265

aurnoi1 opened this issue Feb 13, 2022 · 3 comments

Comments

@aurnoi1
Copy link

aurnoi1 commented Feb 13, 2022

Gherkin-lint does not seem to support other language than English or I could not find how to do it from the documentation.

Example in french:

Fonctionnalité: Se déconnecter de l'application 

    @criticality:2
    Scénario: Se déconnecter de l'application 
        Étant donné que Ulrick est connecté à son compte
        Quand Ulrick se déconnecte de son compte 
        Alors Ulrick voit la page de connection

Will result to this error:

features/account/Se déconnecter de l'application.feature
  10    (10:0): unexpected end of file, expected: #TagLine, #FeatureLine, #Comment, #Empty                                   unexpected-error
  2     (2:1): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Fonctionnalité: Se déconnecter de l'application'     unexpected-error
  6     (6:5): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Scénario: Se déconnecter de l'application'           unexpected-error
  7     (7:9): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Étant donné que Ulrick est connecté à son compte'    unexpected-error
  8     (8:9): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Quand Ulrick se déconnecte de son compte'            unexpected-error
  9     (9:9): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Alors Ulrick voit la page de connection'   

Version: 4.2.2

@aurnoi1
Copy link
Author

aurnoi1 commented Feb 13, 2022

I found out that using the following comment #language:fr allow to set the language:

#language:fr
Fonctionnalité: Se déconnecter de l'application 

    @criticality:2
    Scénario: Se déconnecter de l'application 
        Étant donné que Ulrick est connecté à son compte
        Quand Ulrick se déconnecte de son compte 
        Alors Ulrick voit la page de connection

I have created a pull request to add an option to the cli: #266

@egarc12
Copy link

egarc12 commented Oct 25, 2023

I am interested in this functionality, is there an update?

@rafutek
Copy link

rafutek commented Feb 22, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants