Translation API v0.1.1
Standalone, provider-neutral Translation API plugin (branch generic-translation-api).
Install
Download translation-api.zip below → WordPress admin → Plugins → Add New → Upload Plugin.
Changes since v0.1.0
- OpenAPI + Swagger UI — public
GET /wp-json/translation/v1/openapispec (OpenAPI 3.1), plus an interactive API docs tab under Settings → Translation API (Swagger UI). - Single auth scheme — standardised on
Authorization: Bearer <key>; theX-API-Keyheader is no longer accepted. Cleaner Swagger "Authorize" flow and consistent cross-origin behaviour (WordPress already allowsAuthorization). - Removed the
Plugin URIheader — no more "Visit plugin site" link on the Plugins page.
Auth note
If every request returns 401 even with a correct key, your host may be stripping the Authorization header — add SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 to .htaccess (same condition WordPress Application Passwords face). See the README.