File tree Expand file tree Collapse file tree 9 files changed +49
-1
lines changed Expand file tree Collapse file tree 9 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 6
6
" Hello world!\n "
7
7
],
8
8
"message" : " Hello world!\n " ,
9
+ "translation" : " " ,
9
10
"position" : " golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
10
11
},
11
12
{
12
13
"key" : [
13
14
" Hello %s!\n "
14
15
],
15
16
"message" : " Hello {City}!\n " ,
17
+ "translation" : " " ,
16
18
"placeholders" : [
17
19
{
18
20
"id" : " City" ,
30
32
" Hello %s!\n "
31
33
],
32
34
"message" : " Hello {Town}!\n " ,
35
+ "translation" : " " ,
33
36
"placeholders" : [
34
37
{
35
38
"id" : " Town" ,
48
51
" %s is visiting %s!\n "
49
52
],
50
53
"message" : " {Person} is visiting {Place}!\n " ,
54
+ "translation" : " " ,
51
55
"placeholders" : [
52
56
{
53
57
"id" : " Person" ,
75
79
" %[1]s is visiting %[3]s!\n "
76
80
],
77
81
"message" : " {Person} is visiting {Place}!\n " ,
82
+ "translation" : " " ,
78
83
"comment" : " Person visiting a place." ,
79
84
"placeholders" : [
80
85
{
110
115
" %d files remaining!"
111
116
],
112
117
"message" : " {} files remaining!" ,
118
+ "translation" : " " ,
113
119
"placeholders" : [
114
120
{
115
121
"id" : " " ,
127
133
" %d more files remaining!"
128
134
],
129
135
"message" : " {N} more files remaining!" ,
136
+ "translation" : " " ,
130
137
"placeholders" : [
131
138
{
132
139
"id" : " N" ,
144
151
" Use the following code for your discount: %d\n "
145
152
],
146
153
"message" : " Use the following code for your discount: {ReferralCode}\n " ,
154
+ "translation" : " " ,
147
155
"placeholders" : [
148
156
{
149
157
"id" : " ReferralCode" ,
162
170
" %s is out of order!"
163
171
],
164
172
"message" : " {Device} is out of order!" ,
173
+ "translation" : " " ,
165
174
"comment" : " FOO\n " ,
166
175
"placeholders" : [
167
176
{
180
189
" %.2[1]f miles traveled (%[1]f)"
181
190
],
182
191
"message" : " {Miles} miles traveled ({Miles_1})" ,
192
+ "translation" : " " ,
183
193
"placeholders" : [
184
194
{
185
195
"id" : " Miles" ,
Original file line number Diff line number Diff line change 6
6
" Hello world!\n "
7
7
],
8
8
"message" : " Hello world!\n " ,
9
+ "translation" : " " ,
9
10
"position" : " golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
10
11
},
11
12
{
12
13
"key" : [
13
14
" Hello %s!\n "
14
15
],
15
16
"message" : " Hello {City}!\n " ,
17
+ "translation" : " " ,
16
18
"placeholders" : [
17
19
{
18
20
"id" : " City" ,
30
32
" Hello %s!\n "
31
33
],
32
34
"message" : " Hello {Town}!\n " ,
35
+ "translation" : " " ,
33
36
"placeholders" : [
34
37
{
35
38
"id" : " Town" ,
48
51
" %s is visiting %s!\n "
49
52
],
50
53
"message" : " {Person} is visiting {Place}!\n " ,
54
+ "translation" : " " ,
51
55
"placeholders" : [
52
56
{
53
57
"id" : " Person" ,
75
79
" %[1]s is visiting %[3]s!\n "
76
80
],
77
81
"message" : " {Person} is visiting {Place}!\n " ,
82
+ "translation" : " " ,
78
83
"comment" : " Person visiting a place." ,
79
84
"placeholders" : [
80
85
{
110
115
" %d files remaining!"
111
116
],
112
117
"message" : " {} files remaining!" ,
118
+ "translation" : " " ,
113
119
"placeholders" : [
114
120
{
115
121
"id" : " " ,
127
133
" %d more files remaining!"
128
134
],
129
135
"message" : " {N} more files remaining!" ,
136
+ "translation" : " " ,
130
137
"placeholders" : [
131
138
{
132
139
"id" : " N" ,
144
151
" Use the following code for your discount: %d\n "
145
152
],
146
153
"message" : " Use the following code for your discount: {ReferralCode}\n " ,
154
+ "translation" : " " ,
147
155
"placeholders" : [
148
156
{
149
157
"id" : " ReferralCode" ,
162
170
" %s is out of order!"
163
171
],
164
172
"message" : " {Device} is out of order!" ,
173
+ "translation" : " " ,
165
174
"comment" : " FOO\n " ,
166
175
"placeholders" : [
167
176
{
180
189
" %.2[1]f miles traveled (%[1]f)"
181
190
],
182
191
"message" : " {Miles} miles traveled ({Miles_1})" ,
192
+ "translation" : " " ,
183
193
"placeholders" : [
184
194
{
185
195
"id" : " Miles" ,
Original file line number Diff line number Diff line change 6
6
" Hello world!\n "
7
7
],
8
8
"message" : " Hello world!\n " ,
9
+ "translation" : " " ,
9
10
"position" : " golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
10
11
},
11
12
{
12
13
"key" : [
13
14
" Hello %s!\n "
14
15
],
15
16
"message" : " Hello {City}!\n " ,
17
+ "translation" : " " ,
16
18
"placeholders" : [
17
19
{
18
20
"id" : " City" ,
30
32
" Hello %s!\n "
31
33
],
32
34
"message" : " Hello {Town}!\n " ,
35
+ "translation" : " " ,
33
36
"placeholders" : [
34
37
{
35
38
"id" : " Town" ,
48
51
" %s is visiting %s!\n "
49
52
],
50
53
"message" : " {Person} is visiting {Place}!\n " ,
54
+ "translation" : " " ,
51
55
"placeholders" : [
52
56
{
53
57
"id" : " Person" ,
75
79
" %[1]s is visiting %[3]s!\n "
76
80
],
77
81
"message" : " {Person} is visiting {Place}!\n " ,
82
+ "translation" : " " ,
78
83
"comment" : " Person visiting a place." ,
79
84
"placeholders" : [
80
85
{
110
115
" %d files remaining!"
111
116
],
112
117
"message" : " {} files remaining!" ,
118
+ "translation" : " " ,
113
119
"placeholders" : [
114
120
{
115
121
"id" : " " ,
127
133
" %d more files remaining!"
128
134
],
129
135
"message" : " {N} more files remaining!" ,
136
+ "translation" : " " ,
130
137
"placeholders" : [
131
138
{
132
139
"id" : " N" ,
144
151
" Use the following code for your discount: %d\n "
145
152
],
146
153
"message" : " Use the following code for your discount: {ReferralCode}\n " ,
154
+ "translation" : " " ,
147
155
"placeholders" : [
148
156
{
149
157
"id" : " ReferralCode" ,
162
170
" %s is out of order!"
163
171
],
164
172
"message" : " {Device} is out of order!" ,
173
+ "translation" : " " ,
165
174
"comment" : " FOO\n " ,
166
175
"placeholders" : [
167
176
{
180
189
" %.2[1]f miles traveled (%[1]f)"
181
190
],
182
191
"message" : " {Miles} miles traveled ({Miles_1})" ,
192
+ "translation" : " " ,
183
193
"placeholders" : [
184
194
{
185
195
"id" : " Miles" ,
Original file line number Diff line number Diff line change 6
6
" Hello world!\n "
7
7
],
8
8
"message" : " Hello world!\n " ,
9
+ "translation" : " " ,
9
10
"position" : " golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
10
11
},
11
12
{
12
13
"key" : [
13
14
" Hello %s!\n "
14
15
],
15
16
"message" : " Hello {City}!\n " ,
17
+ "translation" : " " ,
16
18
"placeholders" : [
17
19
{
18
20
"id" : " City" ,
30
32
" Hello %s!\n "
31
33
],
32
34
"message" : " Hello {Town}!\n " ,
35
+ "translation" : " " ,
33
36
"placeholders" : [
34
37
{
35
38
"id" : " Town" ,
48
51
" %s is visiting %s!\n "
49
52
],
50
53
"message" : " {Person} is visiting {Place}!\n " ,
54
+ "translation" : " " ,
51
55
"placeholders" : [
52
56
{
53
57
"id" : " Person" ,
75
79
" %[1]s is visiting %[3]s!\n "
76
80
],
77
81
"message" : " {Person} is visiting {Place}!\n " ,
82
+ "translation" : " " ,
78
83
"comment" : " Person visiting a place." ,
79
84
"placeholders" : [
80
85
{
110
115
" %d files remaining!"
111
116
],
112
117
"message" : " {} files remaining!" ,
118
+ "translation" : " " ,
113
119
"placeholders" : [
114
120
{
115
121
"id" : " " ,
127
133
" %d more files remaining!"
128
134
],
129
135
"message" : " {N} more files remaining!" ,
136
+ "translation" : " " ,
130
137
"placeholders" : [
131
138
{
132
139
"id" : " N" ,
144
151
" Use the following code for your discount: %d\n "
145
152
],
146
153
"message" : " Use the following code for your discount: {ReferralCode}\n " ,
154
+ "translation" : " " ,
147
155
"placeholders" : [
148
156
{
149
157
"id" : " ReferralCode" ,
162
170
" %s is out of order!"
163
171
],
164
172
"message" : " {Device} is out of order!" ,
173
+ "translation" : " " ,
165
174
"comment" : " FOO\n " ,
166
175
"placeholders" : [
167
176
{
180
189
" %.2[1]f miles traveled (%[1]f)"
181
190
],
182
191
"message" : " {Miles} miles traveled ({Miles_1})" ,
192
+ "translation" : " " ,
183
193
"placeholders" : [
184
194
{
185
195
"id" : " Miles" ,
Original file line number Diff line number Diff line change 6
6
" Hello %s!\n "
7
7
],
8
8
"message" : " Hello {From}!\n " ,
9
+ "translation" : " " ,
9
10
"placeholders" : [
10
11
{
11
12
"id" : " From" ,
23
24
" Do you like your browser (%s)?\n "
24
25
],
25
26
"message" : " Do you like your browser ({User_Agent})?\n " ,
27
+ "translation" : " " ,
26
28
"placeholders" : [
27
29
{
28
30
"id" : " User_Agent" ,
Original file line number Diff line number Diff line change 6
6
" Hello %s!\n "
7
7
],
8
8
"message" : " Hello {From}!\n " ,
9
+ "translation" : " " ,
9
10
"placeholders" : [
10
11
{
11
12
"id" : " From" ,
23
24
" Do you like your browser (%s)?\n "
24
25
],
25
26
"message" : " Do you like your browser ({User_Agent})?\n " ,
27
+ "translation" : " " ,
26
28
"placeholders" : [
27
29
{
28
30
"id" : " User_Agent" ,
Original file line number Diff line number Diff line change 6
6
" Hello %s!\n "
7
7
],
8
8
"message" : " Hello {From}!\n " ,
9
+ "translation" : " " ,
9
10
"placeholders" : [
10
11
{
11
12
"id" : " From" ,
23
24
" Do you like your browser (%s)?\n "
24
25
],
25
26
"message" : " Do you like your browser ({User_Agent})?\n " ,
27
+ "translation" : " " ,
26
28
"placeholders" : [
27
29
{
28
30
"id" : " User_Agent" ,
Original file line number Diff line number Diff line change 6
6
" Hello %s!\n "
7
7
],
8
8
"message" : " Hello {From}!\n " ,
9
+ "translation" : " " ,
9
10
"placeholders" : [
10
11
{
11
12
"id" : " From" ,
23
24
" Do you like your browser (%s)?\n "
24
25
],
25
26
"message" : " Do you like your browser ({User_Agent})?\n " ,
27
+ "translation" : " " ,
26
28
"placeholders" : [
27
29
{
28
30
"id" : " User_Agent" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type Message struct {
37
37
Key []string `json:"key,omitempty"`
38
38
Meaning string `json:"meaning,omitempty"`
39
39
Message Text `json:"message"`
40
- Translation * Text `json:"translation,omitempty"` // TODO: not pointer?
40
+ Translation Text `json:"translation"`
41
41
42
42
Comment string `json:"comment,omitempty"`
43
43
TranslatorComment string `json:"translatorComment,omitempty"`
You can’t perform that action at this time.
0 commit comments