Skip to content

Commit

Permalink
Merge pull request #4026 from ushahidi/feat-add-translations-to-minimal
Browse files Browse the repository at this point in the history
feat: add translations to minimal surveys format
  • Loading branch information
rowasc authored Jul 22, 2020
2 parents 7fe225e + 92d8790 commit 9f8c3de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v5/Http/Resources/SurveyResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function toArray($request)
'id' => $this->id,
'name' => $this->name,
'description' => $this->description,
'translations' => new TranslationCollection($this->translations),
'enabled_languages' => [
'default'=> $this->base_language,
'available' => $this->translations->groupBy('language')->keys()
Expand Down

0 comments on commit 9f8c3de

Please sign in to comment.