Translation API v0.1.0
·
4 commits
to generic-translation-api
since this release
First release of the Translation API plugin — the standalone, provider-neutral variant (branch `generic-translation-api`).
Exposes WPML-managed pages and their translations over a small REST API so any translation system can extract source strings and write translations back. Authenticated with an API key created in the plugin's settings — no external service required.
Install
Download translation-api.zip below → WordPress admin → Plugins → Add New → Upload Plugin.
Highlights
- Self-managed API keys (Settings → Translation API); only SHA-256 hashes stored, shown once, timing-safe verification.
- Auth via
X-API-KeyorAuthorization: Bearer. - Endpoints under
/wp-json/translation/v1:health,locales,resources, andresources/{id}/translations(GET + POST write-back). - Requires WPML. See the README for the full API reference.