| 1 |
{ |
| 2 |
"language": "en-US", |
| 3 |
"messages": [ |
| 4 |
{ |
| 5 |
"id": "inline {ARG1}", |
| 6 |
"key": "inline %s", |
| 7 |
"message": "inline {ARG1}", |
| 8 |
"translation": "", |
| 9 |
"placeholders": [ |
| 10 |
{ |
| 11 |
"id": "ARG1", |
| 12 |
"string": "%[1]s", |
| 13 |
"type": "string", |
| 14 |
"underlyingType": "string", |
| 15 |
"argNum": 1, |
| 16 |
"expr": "\"ARG1\"" |
| 17 |
} |
| 18 |
], |
| 19 |
"position": "testdata/ssa/ssa.go:16:7" |
| 20 |
}, |
| 21 |
{ |
| 22 |
"id": "global printer used {ARG1}", |
| 23 |
"key": "global printer used %s", |
| 24 |
"message": "global printer used {ARG1}", |
| 25 |
"translation": "", |
| 26 |
"placeholders": [ |
| 27 |
{ |
| 28 |
"id": "ARG1", |
| 29 |
"string": "%[1]s", |
| 30 |
"type": "string", |
| 31 |
"underlyingType": "string", |
| 32 |
"argNum": 1, |
| 33 |
"expr": "\"ARG1\"" |
| 34 |
} |
| 35 |
], |
| 36 |
"position": "testdata/ssa/ssa.go:17:8" |
| 37 |
}, |
| 38 |
{ |
| 39 |
"id": "number: {2}, string: {STRING_ARG}, bool: {True}", |
| 40 |
"key": "number: %d, string: %s, bool: %v", |
| 41 |
"message": "number: {2}, string: {STRING_ARG}, bool: {True}", |
| 42 |
"translation": "", |
| 43 |
"placeholders": [ |
| 44 |
{ |
| 45 |
"id": "2", |
| 46 |
"string": "%[1]d", |
| 47 |
"type": "int", |
| 48 |
"underlyingType": "int", |
| 49 |
"argNum": 1, |
| 50 |
"expr": "2" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"id": "STRING_ARG", |
| 54 |
"string": "%[2]s", |
| 55 |
"type": "string", |
| 56 |
"underlyingType": "string", |
| 57 |
"argNum": 2, |
| 58 |
"expr": "\"STRING ARG\"" |
| 59 |
}, |
| 60 |
{ |
| 61 |
"id": "True", |
| 62 |
"string": "%[3]v", |
| 63 |
"type": "bool", |
| 64 |
"underlyingType": "bool", |
| 65 |
"argNum": 3, |
| 66 |
"expr": "true" |
| 67 |
} |
| 68 |
], |
| 69 |
"position": "testdata/ssa/ssa.go:22:9" |
| 70 |
}, |
| 71 |
{ |
| 72 |
"id": "empty string", |
| 73 |
"key": "empty string", |
| 74 |
"message": "empty string", |
| 75 |
"translation": "", |
| 76 |
"position": "testdata/ssa/ssa.go:23:9" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"id": "Lovely weather today!", |
| 80 |
"key": "Lovely weather today!", |
| 81 |
"message": "Lovely weather today!", |
| 82 |
"translation": "", |
| 83 |
"position": "testdata/ssa/ssa.go:24:8" |
| 84 |
}, |
| 85 |
{ |
| 86 |
"id": "number one", |
| 87 |
"key": "number one", |
| 88 |
"message": "number one", |
| 89 |
"translation": "", |
| 90 |
"position": "testdata/ssa/ssa.go:32:8" |
| 91 |
}, |
| 92 |
{ |
| 93 |
"id": [ |
| 94 |
"v", |
| 95 |
"number: {C}" |
| 96 |
], |
| 97 |
"key": "number: %d", |
| 98 |
"message": "number: {C}", |
| 99 |
"translation": "", |
| 100 |
"placeholders": [ |
| 101 |
{ |
| 102 |
"id": "C", |
| 103 |
"string": "%[1]d", |
| 104 |
"type": "string", |
| 105 |
"underlyingType": "string", |
| 106 |
"argNum": 1, |
| 107 |
"expr": "c" |
| 108 |
} |
| 109 |
], |
| 110 |
"position": "testdata/ssa/ssa.go:79:10" |
| 111 |
}, |
| 112 |
{ |
| 113 |
"id": [ |
| 114 |
"format", |
| 115 |
"constant local {Args}" |
| 116 |
], |
| 117 |
"key": "constant local %s", |
| 118 |
"message": "constant local {Args}", |
| 119 |
"translation": "", |
| 120 |
"placeholders": [ |
| 121 |
{ |
| 122 |
"id": "Args", |
| 123 |
"string": "%[1]s", |
| 124 |
"type": "[]interface{}", |
| 125 |
"underlyingType": "[]interface{}", |
| 126 |
"argNum": 1, |
| 127 |
"expr": "args" |
| 128 |
} |
| 129 |
], |
| 130 |
"position": "testdata/ssa/ssa.go:88:11" |
| 131 |
}, |
| 132 |
{ |
| 133 |
"id": [ |
| 134 |
"a", |
| 135 |
"foo {Arg1} {B}" |
| 136 |
], |
| 137 |
"key": "foo %s %s", |
| 138 |
"message": "foo {Arg1} {B}", |
| 139 |
"translation": "", |
| 140 |
"placeholders": [ |
| 141 |
{ |
| 142 |
"id": "Arg1", |
| 143 |
"string": "%[1]s", |
| 144 |
"type": "string", |
| 145 |
"underlyingType": "string", |
| 146 |
"argNum": 1, |
| 147 |
"expr": "arg1" |
| 148 |
}, |
| 149 |
{ |
| 150 |
"id": "B", |
| 151 |
"string": "%[2]s", |
| 152 |
"type": "string", |
| 153 |
"underlyingType": "string", |
| 154 |
"argNum": 2, |
| 155 |
"expr": "b" |
| 156 |
} |
| 157 |
], |
| 158 |
"position": "testdata/ssa/ssa.go:139:7" |
| 159 |
}, |
| 160 |
{ |
| 161 |
"id": [ |
| 162 |
"a", |
| 163 |
"bar {Arg1} {B}" |
| 164 |
], |
| 165 |
"key": "bar %s %s", |
| 166 |
"message": "bar {Arg1} {B}", |
| 167 |
"translation": "", |
| 168 |
"placeholders": [ |
| 169 |
{ |
| 170 |
"id": "Arg1", |
| 171 |
"string": "%[1]s", |
| 172 |
"type": "string", |
| 173 |
"underlyingType": "string", |
| 174 |
"argNum": 1, |
| 175 |
"expr": "arg1" |
| 176 |
}, |
| 177 |
{ |
| 178 |
"id": "B", |
| 179 |
"string": "%[2]s", |
| 180 |
"type": "string", |
| 181 |
"underlyingType": "string", |
| 182 |
"argNum": 2, |
| 183 |
"expr": "b" |
| 184 |
} |
| 185 |
], |
| 186 |
"position": "testdata/ssa/ssa.go:139:7" |
| 187 |
}, |
| 188 |
{ |
| 189 |
"id": [ |
| 190 |
"a", |
| 191 |
"foo" |
| 192 |
], |
| 193 |
"key": "foo", |
| 194 |
"message": "foo", |
| 195 |
"translation": "", |
| 196 |
"position": "testdata/ssa/ssa.go:153:8" |
| 197 |
}, |
| 198 |
{ |
| 199 |
"id": [ |
| 200 |
"a", |
| 201 |
"bar" |
| 202 |
], |
| 203 |
"key": "bar", |
| 204 |
"message": "bar", |
| 205 |
"translation": "", |
| 206 |
"position": "testdata/ssa/ssa.go:153:8" |
| 207 |
}, |
| 208 |
{ |
| 209 |
"id": [ |
| 210 |
"a", |
| 211 |
"baz" |
| 212 |
], |
| 213 |
"key": "baz", |
| 214 |
"message": "baz", |
| 215 |
"translation": "", |
| 216 |
"position": "testdata/ssa/ssa.go:153:8" |
| 217 |
}, |
| 218 |
{ |
| 219 |
"id": [ |
| 220 |
"str", |
| 221 |
"const str" |
| 222 |
], |
| 223 |
"key": "const str", |
| 224 |
"message": "const str", |
| 225 |
"translation": "", |
| 226 |
"position": "testdata/ssa/ssa.go:168:11" |
| 227 |
}, |
| 228 |
{ |
| 229 |
"id": [ |
| 230 |
"globalStr", |
| 231 |
"See you around in {City}!" |
| 232 |
], |
| 233 |
"key": "See you around in %s!", |
| 234 |
"message": "See you around in {City}!", |
| 235 |
"translation": "", |
| 236 |
"placeholders": [ |
| 237 |
{ |
| 238 |
"id": "City", |
| 239 |
"string": "%[1]s", |
| 240 |
"type": "string", |
| 241 |
"underlyingType": "string", |
| 242 |
"argNum": 1, |
| 243 |
"expr": "city" |
| 244 |
} |
| 245 |
], |
| 246 |
"position": "testdata/ssa/ssa.go:181:5" |
| 247 |
}, |
| 248 |
{ |
| 249 |
"id": [ |
| 250 |
"constFood", |
| 251 |
"Please eat your {Food}!" |
| 252 |
], |
| 253 |
"key": "Please eat your %s!", |
| 254 |
"message": "Please eat your {Food}!", |
| 255 |
"translation": "", |
| 256 |
"comment": "Ho ho ho", |
| 257 |
"placeholders": [ |
| 258 |
{ |
| 259 |
"id": "Food", |
| 260 |
"string": "%[1]s", |
| 261 |
"type": "string", |
| 262 |
"underlyingType": "string", |
| 263 |
"argNum": 1, |
| 264 |
"expr": "food", |
| 265 |
"comment": "the food to be consumed by the subject" |
| 266 |
} |
| 267 |
], |
| 268 |
"position": "testdata/ssa/ssa.go:193:2" |
| 269 |
}, |
| 270 |
{ |
| 271 |
"id": [ |
| 272 |
"msgHello", |
| 273 |
"Hello, {Integer} and {Arg_2}!" |
| 274 |
], |
| 275 |
"key": "Hello, %d and %s!", |
| 276 |
"message": "Hello, {Integer} and {Arg_2}!", |
| 277 |
"translation": "", |
| 278 |
"comment": "Ho ho ho", |
| 279 |
"placeholders": [ |
| 280 |
{ |
| 281 |
"id": "Integer", |
| 282 |
"string": "%[1]d", |
| 283 |
"type": "", |
| 284 |
"underlyingType": "int", |
| 285 |
"argNum": 1 |
| 286 |
}, |
| 287 |
{ |
| 288 |
"id": "Arg_2", |
| 289 |
"string": "%[2]s", |
| 290 |
"type": "", |
| 291 |
"underlyingType": "string", |
| 292 |
"argNum": 2 |
| 293 |
} |
| 294 |
], |
| 295 |
"position": "testdata/ssa/ssa.go:193:2" |
| 296 |
} |
| 297 |
] |
| 298 |
} |