File: i18n.go

package info (click to toggle)
golang-github-gucumber-gucumber 0.0~git20160715.0.71608e2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 172 kB
  • ctags: 160
  • sloc: makefile: 10
file content (56 lines) | stat: -rwxr-xr-x 1,343 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package gherkin

type Language string

// Translation represents the Gherkin syntax keywords in a single language.
type Translation struct {
	// Language specific term representing a feature.
	Feature string

	// Language specific term representing the feature background.
	Background string

	// Language specific term representing a scenario.
	Scenario string

	// Language specific term representing a scenario outline.
	Outline string

	// Language specific term representing the "And" step.
	And string

	// Language specific term representing the "Given" step.
	Given string

	// Language specific term representing the "When" step.
	When string

	// Language specific term representing the "Then" step.
	Then string

	// Language specific term representing a scenario outline prefix.
	Examples string
}

const (
	// The language code for English translations.
	LANG_EN = Language("en")
)

var (
	// Translations contains internationalized translations of the Gherkin
	// syntax keywords in a variety of supported languages.
	Translations = map[Language]Translation{
		LANG_EN: Translation{
			Feature:    "Feature",
			Background: "Background",
			Scenario:   "Scenario",
			Outline:    "Scenario Outline",
			And:        "And",
			Given:      "Given",
			When:       "When",
			Then:       "Then",
			Examples:   "Examples",
		},
	}
)