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 committed Feb 25, 2024
1 parent be4848b commit af3d729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ public function setTranslation(string $key, string $locale, $value): self
} elseif($this->hasAttributeSetMutator($key)) { // handle new attribute mutator
$this->setAttributeMarkedMutatedAttributeValue($key, $value);

$this->attributes[$key] = json_encode($translations, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
$value = $this->attributes[$key];
}

$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 af3d729

Please sign in to comment.