Skip to content

Commit

Permalink
fix: allow raw searchable umlauts
Browse files Browse the repository at this point in the history
  • Loading branch information
Muetze42 authored and freekmurze committed Feb 26, 2024
1 parent db3281f commit 1437edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HasTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 1437edf

Please sign in to comment.