Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Cucumber Feature file in different languages

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 724
    Comment on it

    There are many applications that run on different geographic locations and teams from locations also work on the same project. It may be possible the different team members are comfortable in writing feature files in different languages. So, cucumber provides the facility to write the feature file in their language and execute them successfully. Cucumber provides 60+ languages support to write the feature file.

     

    The languages supported by Cucumber are:


     

    Code

    Language

    af

    Afrikaans

    am

    Armenian

    ar

    Arabic

    bg

    Bulgarian

    bm

    Malay

    bs

    Bosnian

    ca

    Catalan

    cs

    Czech

    cy-GB

    Welsh

    da

    Danish

    de

    German

    el

    Greek

    em

    Emoji

    en

    English

    en-Scouse

    Scouse

    en-au

    Australian

    en-lol

    LOLCAT

    en-old

    Old English

    en-pirate

    Pirate

    eo

    Esperanto

    es

    Spanish

    et

    Estonian

    fa

    Persian

    fi

    Finnish

    fr

    French

    ga

    Irish

    gj

    Gujarati

    gl

    Galician

    he

    Hebrew

    hi

    Hindi

    hr

    Croatian

    ht

    Creole

    hu

    Hungarian

    id

    Indonesian

    is

    Icelandic

    it

    Italian

    ja

    Japanese

    jv

    Javanese

    kn

    Kannada

    ko

    Korean

    lt

    Lithuanian

    lu

    Luxemburgish

    lv

    Latvian

    mn

    Mongolian

    nl

    Dutch

    no

    Norwegian

    pa

    Panjabi

    pl

    Polish

    pt

    Portuguese

    ro

    Romanian

    ru

    Russian

    sk

    Slovak

    sl

    Slovenian

    sr-Cyrl

    Serbian

    sr-Latn

    Serbian (Latin)

    sv

    Swedish

    ta

    Tamil

    th

    Thai

    tl

    Telugu

    tlh

    Klingon

    tr

    Turkish

    tt

    Tatar

    uk

    Ukrainian

    ur

    Urdu

    uz

    Uzbek

    vi

    Vietnamese

    zh-CN

    Chinese simplified

    zh-TW

    Chinese traditional

    The list can also be generated by running the below command on project root folder.

     

    cucumber --i18n help

     

    Let's suppose we have a feature file in English language but the team sitting in Korea have difficulty in understanding English language then cucumber provides the facility to write the feature file in Korean language or the language in some other language and execute them successfully. By default the language is English, so we do not have to tell cucumber that the feature file is in English language but if the feature file is in Korean language then we have to tell cucumber that the feature file is in Korean language by just starting feature with:

     

    # language: ko

     

    cucumber --i18n <language code>

     

    We can also get the list of keywords of any language by running the above command from the root of project directory.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: