Skip to content

Commit

Permalink
fix phraseapp
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jan 30, 2017
1 parent d1b79f5 commit ebd6ae1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PhraseApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ public function create(Message $message)
if ($key->getName() === $message->getDomain().'::'.$message->getKey()) {
/* @var Index $index */
$index = $this->client->translation()->indexKey($this->projectId, $key->getId(), ['tags' => $message->getDomain()]);

foreach ($index as $translation) {
if ($translation->getLocale()->getId() === $localeId
&& $translation->getContent() !== $message->getTranslation()
) {
if ($translation->getLocale()->getId() === $localeId) {
$this->client->translation()->update($this->projectId, $translation->getId(), $message->getTranslation());

return;
Expand Down

0 comments on commit ebd6ae1

Please sign in to comment.