innomedia/deepl

There is no license information available for the latest version (1.0) of this package.

Silverstripe 4 DeepL Integration

Maintainers

Package info

github.com/innomedia/deepl

pkg:composer/innomedia/deepl

Statistics

Installs: 505

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0 2025-10-30 13:44 UTC

This package is auto-updated.

Last update: 2026-03-01 00:33:31 UTC


README

Add this to Page

public function getCMSActions() { $fields = parent::getCMSActions(); $tmp = explode('_', $this->Locale); $lang = strtoupper($tmp[0]); if (Deepl::canTranslate($lang)) { $fields->fieldByName("MajorActions")->push( ConfirmationFormAction::create("doTranslate","Übersetzen")->addExtraClass("btn-primary") ); } return $fields; }