PHPackages                             mountbatt/kirby-deepl-fields - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mountbatt/kirby-deepl-fields

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

mountbatt/kirby-deepl-fields
============================

Kirby 3 DeepL Fields

29732↓100%3[1 PRs](https://github.com/mountbatt/kirby-deepl-fields/pulls)JavaScript

Since Oct 16Pushed 2y ago3 watchersCompare

[ Source](https://github.com/mountbatt/kirby-deepl-fields)[ Packagist](https://packagist.org/packages/mountbatt/kirby-deepl-fields)[ RSS](/packages/mountbatt-kirby-deepl-fields/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Kirby DeepL Fields
==================

[](#kirby-deepl-fields)

[Kirby](https://getkirby.com) plugin to translate input and textarea fields with DeepL (Free &amp; Pro API).

**Features:**

- Detects base language of your Site and offers translation button to translate the field content
- Can import the field value from the base language
- Can be used with DeepL Free and Pro API
- Supports input field and textarea right now
- Keeps all formattings of a textarea field. Even HTML-Tags

    kirby-deepl-fields.mp4    Installation
------------

[](#installation)

This plugin requires PHP 8.0 and Kirby 3.6.0 or higher.

Download and copy this repository to `/site/plugins/kirby-deepl-fields`

Alternatively, you can install it with composer: `composer require mountbatt/kirby-deepl-fields`

Setup
-----

[](#setup)

### Fields

[](#fields)

This field can replace any `text` and `textarea` field you have set up, and works out of the box with as little config as:

Textarea:

```
editor:
  label: My translatable Field
  inputtype: textarea
  size: large
  type: deepl
```

Text Input:

```
editor:
  label: My translatable Field
  inputtype: text
  type: deepl
```

### DeepL API in `site/config/config.php`

[](#deepl-api-in-siteconfigconfigphp)

First you have to register at DeepL to get an API-Key here:

You can decide if you want to use the free API or buy a PRO plan. Both works and depends on your quota.

After registration you get the API-Key and the API-URL. Copy those values in the config.php setting.

The free-API URL is at the moment: `https://api-free.deepl.com/v2/translate`

```
