From 730f52096f1e25c17c7be9e95393fdecd75f0ded Mon Sep 17 00:00:00 2001 From: Norman Huth Date: Sun, 25 Feb 2024 13:42:38 +0100 Subject: [PATCH] fix: allow raw searchable umlauts --- src/HasTranslations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HasTranslations.php b/src/HasTranslations.php index 01efb1a..124ef1d 100644 --- a/src/HasTranslations.php +++ b/src/HasTranslations.php @@ -142,7 +142,7 @@ public function setTranslation(string $key, string $locale, $value): self $translations[$locale] = $value; - $this->attributes[$key] = $this->asJson($translations); + $this->attributes[$key] = json_encode($translations, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); event(new TranslationHasBeenSetEvent($this, $key, $locale, $oldValue, $value));