forked from gucumber/gucumber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n.go
executable file
·56 lines (44 loc) · 1.31 KB
/
i18n.go
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",
},
}
)