golang.org/x/text@v0.14.0/message/pipeline/testdata/test1/locales/zh/messages.gotext.json (about)

     1  {
     2      "language": "zh",
     3      "messages": [
     4          {
     5              "id": "Hello world!",
     6              "key": "Hello world!\n",
     7              "message": "Hello world!",
     8              "translation": ""
     9          },
    10          {
    11              "id": "Hello {City}!",
    12              "key": "Hello %s!\n",
    13              "message": "Hello {City}!",
    14              "translation": "",
    15              "placeholders": [
    16                  {
    17                      "id": "City",
    18                      "string": "%[1]s"
    19                  }
    20              ]
    21          },
    22          {
    23              "id": "Hello {Town}!",
    24              "key": "Hello %s!\n",
    25              "message": "Hello {Town}!",
    26              "translation": "",
    27              "placeholders": [
    28                  {
    29                      "id": "Town",
    30                      "string": "%[1]s"
    31                  }
    32              ]
    33          },
    34          {
    35              "id": "{Person} is visiting {Place}!",
    36              "key": "%s is visiting %s!\n",
    37              "message": "{Person} is visiting {Place}!",
    38              "translation": "",
    39              "placeholders": [
    40                  {
    41                      "id": "Person",
    42                      "string": "%[1]s"
    43                  },
    44                  {
    45                      "id": "Place",
    46                      "string": "%[2]s"
    47                  }
    48              ]
    49          },
    50          {
    51              "id": "{Person} is visiting {Place}!",
    52              "key": "%[1]s is visiting %[3]s!\n",
    53              "message": "{Person} is visiting {Place}!",
    54              "translation": "",
    55              "placeholders": [
    56                  {
    57                      "id": "Person",
    58                      "string": "%[1]s"
    59                  },
    60                  {
    61                      "id": "Place",
    62                      "string": "%[3]s"
    63                  },
    64                  {
    65                      "id": "Extra",
    66                      "string": "%[2]v"
    67                  }
    68              ]
    69          },
    70          {
    71              "id": "{2} files remaining!",
    72              "key": "%d files remaining!",
    73              "message": "{2} files remaining!",
    74              "translation": "",
    75              "placeholders": [
    76                  {
    77                      "id": "",
    78                      "string": "%[1]d"
    79                  }
    80              ]
    81          },
    82          {
    83              "id": "{N} more files remaining!",
    84              "key": "%d more files remaining!",
    85              "message": "{N} more files remaining!",
    86              "translation": "",
    87              "placeholders": [
    88                  {
    89                      "id": "N",
    90                      "string": "%[1]d"
    91                  }
    92              ]
    93          },
    94          {
    95              "id": "Use the following code for your discount: {ReferralCode}",
    96              "key": "Use the following code for your discount: %d\n",
    97              "message": "Use the following code for your discount: {ReferralCode}",
    98              "translation": "",
    99              "placeholders": [
   100                  {
   101                      "id": "ReferralCode",
   102                      "string": "%[1]d"
   103                  }
   104              ]
   105          },
   106          {
   107              "id": [ "{Device} is out of order!", "msgOutOfOrder" ],
   108              "key": "%s is out of order!",
   109              "message": "{Device} is out of order!",
   110              "translation": "",
   111              "placeholders": [
   112                  {
   113                      "id": "Device",
   114                      "string": "%[1]s"
   115                  }
   116              ]
   117          },
   118          {
   119              "id": "{Miles} miles traveled ({Miles_1})",
   120              "key": "%.2[1]f miles traveled (%[1]f)",
   121              "message": "{Miles} miles traveled ({Miles_1})",
   122              "translation": "",
   123              "placeholders": [
   124                  {
   125                      "id": "Miles",
   126                      "string": "%.2[1]f"
   127                  },
   128                  {
   129                      "id": "Miles_1",
   130                      "string": "%[1]f"
   131                  }
   132              ]
   133          }
   134      ]
   135  }