Skip to content

Commit ebd6ae1

Browse files
committed
fix phraseapp
1 parent d1b79f5 commit ebd6ae1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/PhraseApp.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@ public function create(Message $message)
8585
if ($key->getName() === $message->getDomain().'::'.$message->getKey()) {
8686
/* @var Index $index */
8787
$index = $this->client->translation()->indexKey($this->projectId, $key->getId(), ['tags' => $message->getDomain()]);
88-
8988
foreach ($index as $translation) {
90-
if ($translation->getLocale()->getId() === $localeId
91-
&& $translation->getContent() !== $message->getTranslation()
92-
) {
89+
if ($translation->getLocale()->getId() === $localeId) {
9390
$this->client->translation()->update($this->projectId, $translation->getId(), $message->getTranslation());
9491

9592
return;

0 commit comments

Comments
 (0)