i18n

Prewarm Language

Pre-seed the DB translation cache for a language without waiting for a real user. Runs entirely in the background (returns immediately with a job summary). Idempotent: skips keys already in DB unless force=True.

Example (from VPS, after exporting en.js strings to prewarm.json): curl -X POST https://activitia.net/api/i18n/prewarm/sn
-H 'Content-Type: application/json'
-d @prewarm.json

post/api/i18n/prewarm/{lang}

Request

  • Base URL: https://api.activitia.net (the document declares no server; this is the origin it was published from)
  • URL: https://api.activitia.net/api/i18n/prewarm/{lang}
  • Auth: none declared

Path parameters

langstring required

Request body

stringsobject required
forceboolean

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.