blob: cd249341d9934370af4b3dd7ae15372fe27e79f7 [file] [log] [blame]
{
"language": "en-US",
"messages": [
{
"id": "inline {ARG1}",
"key": "inline %s",
"message": "inline {ARG1}",
"translation": "",
"placeholders": [
{
"id": "ARG1",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "\"ARG1\""
}
],
"position": "testdata/ssa/ssa.go:16:7"
},
{
"id": "global printer used {ARG1}",
"key": "global printer used %s",
"message": "global printer used {ARG1}",
"translation": "",
"placeholders": [
{
"id": "ARG1",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "\"ARG1\""
}
],
"position": "testdata/ssa/ssa.go:17:8"
},
{
"id": "number: {2}, string: {STRING_ARG}, bool: {True}",
"key": "number: %d, string: %s, bool: %v",
"message": "number: {2}, string: {STRING_ARG}, bool: {True}",
"translation": "",
"placeholders": [
{
"id": "2",
"string": "%[1]d",
"type": "int",
"underlyingType": "int",
"argNum": 1,
"expr": "2"
},
{
"id": "STRING_ARG",
"string": "%[2]s",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "\"STRING ARG\""
},
{
"id": "True",
"string": "%[3]v",
"type": "bool",
"underlyingType": "bool",
"argNum": 3,
"expr": "true"
}
],
"position": "testdata/ssa/ssa.go:20:9"
},
{
"id": "empty string",
"key": "empty string",
"message": "empty string",
"translation": "",
"position": "testdata/ssa/ssa.go:21:9"
},
{
"id": "Lovely weather today!",
"key": "Lovely weather today!",
"message": "Lovely weather today!",
"translation": "",
"position": "testdata/ssa/ssa.go:22:8"
},
{
"id": "number one",
"key": "number one",
"message": "number one",
"translation": "",
"position": "testdata/ssa/ssa.go:30:8"
},
{
"id": [
"v",
"number: {C}"
],
"key": "number: %d",
"message": "number: {C}",
"translation": "",
"placeholders": [
{
"id": "C",
"string": "%[1]d",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "c"
}
],
"position": "testdata/ssa/ssa.go:77:10"
},
{
"id": [
"format",
"constant local {Args}"
],
"key": "constant local %s",
"message": "constant local {Args}",
"translation": "",
"placeholders": [
{
"id": "Args",
"string": "%[1]s",
"type": "[]interface{}",
"underlyingType": "[]interface{}",
"argNum": 1,
"expr": "args"
}
],
"position": "testdata/ssa/ssa.go:86:11"
},
{
"id": [
"a",
"foo {Arg1} {B}"
],
"key": "foo %s %s",
"message": "foo {Arg1} {B}",
"translation": "",
"placeholders": [
{
"id": "Arg1",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "arg1"
},
{
"id": "B",
"string": "%[2]s",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "b"
}
],
"position": "testdata/ssa/ssa.go:137:7"
},
{
"id": [
"a",
"bar {Arg1} {B}"
],
"key": "bar %s %s",
"message": "bar {Arg1} {B}",
"translation": "",
"placeholders": [
{
"id": "Arg1",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "arg1"
},
{
"id": "B",
"string": "%[2]s",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "b"
}
],
"position": "testdata/ssa/ssa.go:137:7"
},
{
"id": [
"a",
"foo"
],
"key": "foo",
"message": "foo",
"translation": "",
"position": "testdata/ssa/ssa.go:151:8"
},
{
"id": [
"a",
"bar"
],
"key": "bar",
"message": "bar",
"translation": "",
"position": "testdata/ssa/ssa.go:151:8"
},
{
"id": [
"a",
"baz"
],
"key": "baz",
"message": "baz",
"translation": "",
"position": "testdata/ssa/ssa.go:151:8"
},
{
"id": [
"str",
"const str"
],
"key": "const str",
"message": "const str",
"translation": "",
"position": "testdata/ssa/ssa.go:165:11"
}
]
}