Install
Works with Drupal: ^8 || ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
New features
- Live Preview via a preview package. A new "Live Preview method" setting offers a "Preview package" option. When a job is created, the source content is rendered through your Drupal theme, packaged with its CSS, JS and images, and uploaded to Phrase TMS. This replaces the separate Live Preview connector and its stored Drupal username and password. If generating or uploading the package fails, a warning is logged and the job is still created without a preview. The existing "Legacy connector" method stays the default and is unchanged.
- Webhook security token. A new optional "Webhook security token" setting in the translator configuration takes the token you set for the webhook in Phrase TMS. Once a token is configured, callbacks sent without it, or with a different one, in the x-memsource-token or Authorization header are rejected with 403 Forbidden before anything is processed. If no token is configured, webhooks keep working as before. You can also supply the token from settings.php (see the README).
Bug fixes
- Fixed settings.php overrides for translator credentials (username, password, Platform API Token, service URL) being ignored. Overridden values are now used for authentication, and the translator no longer needs them saved in the database. The settings form shows which settings are overridden and no longer saves an override back into stored configuration. (drupal.org issue #3623279)