File tree Expand file tree Collapse file tree 11 files changed +32
-41
lines changed
Expand file tree Collapse file tree 11 files changed +32
-41
lines changed Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'de'
33
4- module . exports = {
4+ const deTranslations = {
55 I : 'Ich' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 } ,
119 actions : {
1210 amOutsideAngularApp : 'befinde_mich_außerhalb_der_angular_app' ,
@@ -76,3 +74,5 @@ module.exports = {
7674 switchTo : 'wechlse_in_iframe' ,
7775 } ,
7876}
77+
78+ module . exports = deTranslations
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'fr'
33
44module . exports = {
55 I : 'Je' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 Before : 'Avant' ,
119 After : 'Après' ,
1210 BeforeSuite : 'AvantLaSuite' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'it'
33
44module . exports = {
55 I : 'io' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 Before : 'Prima' ,
119 After : 'Dopo' ,
1210 BeforeSuite : 'Prima_della_suite' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'ja'
33
44module . exports = {
55 I : '私は' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 } ,
119 actions : {
1210 amOutsideAngularApp : 'Angularの外に出る' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'nl'
33
44module . exports = {
55 I : 'Ik' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 } ,
119 actions : {
1210 amOutsideAngularApp : 'ben_buiten_angular_app' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'pl'
33
44module . exports = {
55 I : 'Ja' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 } ,
119 actions : {
1210 amOutsideAngularApp : 'jestem_poza_aplikacją_angular' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'pt'
33
44module . exports = {
55 I : 'Eu' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 Before : 'Antes' ,
119 After : 'Depois' ,
1210 BeforeSuite : 'AntesDaSuite' ,
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'ru'
33
44module . exports = {
55 I : 'Я' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 Before : 'Начало' ,
119 After : 'Конец' ,
1210 BeforeSuite : 'Перед_всем' ,
Original file line number Diff line number Diff line change 1+ module . exports . gherkinTranslations = function ( langCode ) {
2+ const gherkinLanguages = require ( '@cucumber/gherkin/src/gherkin-languages.json' )
3+ const { feature, scenario, scenarioOutline } = gherkinLanguages [ langCode ]
4+ return {
5+ Feature : feature [ 0 ] ,
6+ Scenario : scenario [ 0 ] ,
7+ ScenarioOutline : scenarioOutline [ 0 ] ,
8+ }
9+ }
Original file line number Diff line number Diff line change 1- const gherkinTranslations = require ( '@cucumber/gherkin/src/gherkin-languages.json ' )
1+ const { gherkinTranslations } = require ( './utils ' )
22const langCode = 'zh-CN'
33
44module . exports = {
55 I : '我' ,
66 contexts : {
7- Feature : gherkinTranslations [ langCode ] . feature [ 0 ] ,
8- Scenario : gherkinTranslations [ langCode ] . scenario [ 0 ] ,
9- ScenarioOutline : gherkinTranslations [ langCode ] . scenarioOutline [ 0 ] ,
7+ ...gherkinTranslations ( langCode ) ,
108 } ,
119 actions : {
1210 amOutsideAngularApp : '在Angular应用外' ,
You can’t perform that action at this time.
0 commit comments