Skip to content

Translation API v0.1.1

Choose a tag to compare

@tjruesch tjruesch released this 02 Jul 12:28

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/openapi spec (OpenAPI 3.1), plus an interactive API docs tab under Settings → Translation API (Swagger UI).
  • Single auth scheme — standardised on Authorization: Bearer <key>; the X-API-Key header is no longer accepted. Cleaner Swagger "Authorize" flow and consistent cross-origin behaviour (WordPress already allows Authorization).
  • Removed the Plugin URI header — 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.