golang.org/x/text@v0.14.0/cmd/gotext/examples/extract_http/locales/zh/out.gotext.json (about)

     1  {
     2      "language": "zh",
     3      "messages": [
     4          {
     5              "id": "Hello {From}!",
     6              "message": "Hello {From}!",
     7              "translation": "",
     8              "placeholders": [
     9                  {
    10                      "id": "From",
    11                      "string": "%[1]s",
    12                      "type": "string",
    13                      "underlyingType": "string",
    14                      "argNum": 1,
    15                      "expr": "r.Header.Get(\"From\")"
    16                  }
    17              ]
    18          },
    19          {
    20              "id": "Do you like your browser ({User_Agent})?",
    21              "message": "Do you like your browser ({User_Agent})?",
    22              "translation": "",
    23              "placeholders": [
    24                  {
    25                      "id": "User_Agent",
    26                      "string": "%[1]s",
    27                      "type": "string",
    28                      "underlyingType": "string",
    29                      "argNum": 1,
    30                      "expr": "r.Header.Get(\"User-Agent\")"
    31                  }
    32              ]
    33          }
    34      ]
    35  }