statikbe / craft-deepl

Apache License 2.0
2 stars 0 forks source link

Empty string error #11

Open HannahDeWachter opened 2 months ago

HannahDeWachter commented 2 months ago

Matrix block with following fields:

When leaving the Text field empty and trying to translate it gives following error:

DeepL-error

Craft version: 4.8.9 DeepL version: 1.2.0

janhenckens commented 2 months ago

We should probably check in https://github.com/statikbe/craft-deepl/blob/develop/src/services/ApiService.php#L24 if we actually have text to translate