Download the PHP package kirbydesk/kirby-translatewizard without Composer

On this page you can find all versions of the php package kirbydesk/kirby-translatewizard. 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 kirby-translatewizard

kirby-translatewizard

DeepL-powered translator for kirby-pagewizard. Understands pagewizard's pwtext and pweditor JSON envelopes and translates only their text payload, leaving alignment/level/size/mode config untouched. Walks Blocks recursively so nested items (pwsteplistitem, pwcardletsitem, pwfeaturelistitem, pwButton, …) are translated too.

Besides the Blocks field, the page title and pagewizard's meta fields (metapagetitle, metanavigationtitle, metateaser, metadescription, metakeywords) are translated as well. On the first translation, pages get a target-language slug derived from the translated title. Once a language has its own slug it is never changed again, so published URLs stay stable (home and error page keep their slug; on a slug collision the current slug is kept).

Adds an AI button to page views in every secondary language with two actions:

Requirements

Installation

Or drop this repository into site/plugins/kirby-translatewizard/.

Configuration

DeepL API key

Easiest: enter it in the panel under Project Wizard → AI → Access keys (admins only). It is stored as DEEPL_API_KEY in the project's .env and never shown again in full. Alternatively set it in site/config/config.php — the config option takes precedence:

The key ending in :fx triggers the DeepL Free endpoint; any other value hits DeepL Pro.

Get an API key at https://www.deepl.com/pro-api. The DeepL Free tier allows up to 500,000 characters per month.

Note: translatewizard is not compatible with johannschopplich/kirby-content-translator. Use one or the other, not both.

Panel button

The actions live in the shared AI view button provided by kirby-pagewizard (ai, requires kirby-pagewizard 1.1.51+). The button only shows entries that make sense for the current view: the translate actions appear in secondary languages only (Kirby's default language cannot translate to itself). kirby-contentwizard adds its entry in the default language.

Add the button to Kirby's panel.viewButtons config:

This config only applies to blueprints that do not declare their own buttons:. If a page blueprint declares its own list, add - ai to it explicitly — Kirby always prefers the blueprint list over the config default.

API

Direct HTTP endpoint (for scripting / CI):

Requires an authenticated Panel session.

Development

License

Proprietary — internal Kirbydesk use.


All versions of kirby-translatewizard with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.2
kirbydesk/kirby-pagewizard Version ^1.1.53
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 kirbydesk/kirby-translatewizard contains the following files

Loading the files please wait ...