Download the PHP package appswithlove/statamic-one-click-content-translation without Composer

On this page you can find all versions of the php package appswithlove/statamic-one-click-content-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-one-click-content-translation

One-click Content Translation

Statamic 4.0+

With the One-click Content Translation addon for Statamic, translations are done in a breeze, directly within the CMS. Thanks to the integration of the DeepL-API or Google Cloud API, text in any language supported by DeepL/Google* can be instantly translated within the Statamic CMS. Say goodbye to endless copy and pasting and experience the luxury of automatic translations for the languages on your website.

You can use One-click Content Translation for almost all text and field types. Titles, paragraphs – you name it! The add-on automatically detects the language you're translating and puts it into the language of the selected page you're editing in Statamic.

Of course the API limits apply, so you'll need to use your own API key and/or DeepL subscription. For more info on the free version and subscription options, check out the DeepL website. Same thing for Google Cloud Translation, obviously.

*DeepL has a list of supported languages here: https://support.deepl.com/hc/en-us/articles/360019925219-Languages-included-in-DeepL-Pro

The list of languages supported by Google can be found here: https://cloud.google.com/translate/docs/languages

One-click Content Translation

One-click Content Translation is a Commercial Addon.

You can use the addon for free while in development, but it requires a license to use on a live site. Learn more or buy a license on The Statamic Marketplace!

Installation

  1. Install One-click Content Translation from the Tools > Addons section of your control panel, or via composer:

  2. Set Deepl Auth Key to .env file DEEPL_AUTH_KEY=. To get an Auth Key go to https://www.deepl.com/docs-api/api-access/authentication/ List of countries where Deepl is available.

Note: The addon will not work without a Deepl Auth Key

OR

Set Translate Service in .env file to ONE_CLICK_CONTENT_TRANSLATION_SERVICE=google. Set Google Cloud Credentials path in .env file ONE_CLICK_CONTENT_TRANSLATION_GOOGLE_APPLICATION_CREDENTIALS=. Set Google Cloud resource ID in .env file ONE_CLICK_CONTENT_TRANSLATION_GOOGLE_APPLICATION_ID=.

Usage

The One-click Content Translation addon will add a special button for secondary languages into collection entry edit views. After a click on the button the addon will translate content inside the related field from the default language to the selected one.

If you have a field with language suffix, like title_en you will see two buttons: translate to selected language and translate to EN language.

For using the functionality for globals or assets you have to add the one_click_content_translation_inputs field to each required blueprint.

Uninstalling

To uninstall, run:

Demo

Demo One-click Content Translation

Google Cloud


All versions of statamic-one-click-content-translation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.4
deeplcom/deepl-php Version ^1.0
statamic/cms Version ^4.0 || ^5.2
google/cloud-translate Version ^1.17
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package appswithlove/statamic-one-click-content-translation contains the following files

Loading the files please wait ....