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