diveharder_api.py icon indicating copy to clipboard operation
diveharder_api.py copied to clipboard

need provide another language

Open 30233904 opened this issue 1 year ago • 1 comments

when i am using the api of https://api.diveharder.com/raw/dss, i added Accept-Language:zh-Hans into the headers, but it didnt return contents in chinese. hope can support another languages in this api

30233904 avatar Dec 08 '24 09:12 30233904

[ { "id32": 749875195, "planetIndex": 253, "lastElectionId": "a5e545ba-82b3-ef11-88cd-6045bdb03ce7", "currentElectionId": "1881ae4b-4cb4-ef11-88cd-6045bdb03ce7", "nextElectionId": "d86aa5d8-15b5-ef11-88cd-6045bdb03ce7", "currentElectionEndWarTime": 26006960, "flags": 1, "tacticalActions": [ { "id32": 1811774650, "mediaId32": 1811774650, "name": "PLANETARY BOMBARDMENT", "description": "The DSS fires nonstop orbital bombardments from its suite of 77 PRESIDENTIAL-Class Cannons, providing planetwide artillery support and accelerating liberation efforts. Temporarily, also increases Reinforcement Budget by +1 per squad member and augments all loadouts with FX-12 Shield Generator Relay Stratagem.", "strategicDescription": "Fires periodic <i=1>Orbital Barrages during missions. Accelerates progress in <i=1>Liberation Campaigns.", "status": 3, "statusExpireAtWarTimeSeconds": 26268640, "cost": [ { "id": "dc2fb44e-ea9f-ef11-88d0-002248533197", "itemMixId": 2985106497, "targetValue": 86400, "currentValue": 0, "deltaPerSecond": 0, "maxDonationAmount": 50, "maxDonationPeriodSeconds": 86400 } ], "effectIds": [ 1208, 1211, 1214, 1178 ], "activeEffectIds": [] }, { "id32": 4091660627, "mediaId32": 4091660627, "name": "EAGLE STORM", "description": "DSS crews maintain deployment of a 24-hour rotating fleet of Eagle Fighters from the massive three-tiered Convocation Bay, supporting all Helldiver operations on the planet with close air support and halting enemy offensives for a short time. Temporarily, also increases Reinforcement Budget by +1 per squad member.", "strategicDescription": "Deploys periodic <i=1>Eagle Airstrikes during missions. Slows enemy progress in <i=1>Defense Campaigns.", "status": 1, "statusExpireAtWarTimeSeconds": 26163790, "cost": [ { "id": "ce60caf8-d89e-ef11-88d0-002248533197", "itemMixId": 3992382197, "targetValue": 86400, "currentValue": 21751.25, "deltaPerSecond": 0.001, "maxDonationAmount": 75, "maxDonationPeriodSeconds": 86400 } ], "effectIds": [ 1209, 1212, 1216 ], "activeEffectIds": [] }, { "id32": 3248573007, "mediaId32": 714920092, "name": "ORBITAL BLOCKADE", "description": "The DSS activates its Zero G Anti-Ship Missile System, targeting all large enemy spacecraft attempting to exit the planet's atmosphere. In addition, diverts excess manpower to Super Destroyer logistical support. ", "strategicDescription": "<i=1>Defense Campaigns cannot originate from this planet. The <i=1>HELLPOD SPACE OPTIMIZATION Booster is automatically active for all missions.", "status": 1, "statusExpireAtWarTimeSeconds": 26099220, "cost": [ { "id": "e1c28f9c-ea9f-ef11-88d0-002248533197", "itemMixId": 3608481516, "targetValue": 86400, "currentValue": 13480, "deltaPerSecond": 1, "maxDonationAmount": 50000, "maxDonationPeriodSeconds": 86400 } ], "effectIds": [ 1210, 1213, 1215 ], "activeEffectIds": [] } ] } ] //didnt support chinese

30233904 avatar Dec 08 '24 09:12 30233904