Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Added docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsav committed Jun 6, 2017
1 parent d49e818 commit 4fa184a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### v. 7.1

- Added fallback per attribute. #348
- Added getTranslationsArray() to return #347
- Added getTranslationsArray() #347
- Fixed filling 'property:locale' format was not validating the locale. #356

### v. 7
Expand Down
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,15 @@ $germany->deleteTranslations();
// Delete one or multiple translations
$germany->deleteTranslations('de');
$germany->deleteTranslations(['de', 'en']);

// Gel all the translations as array
$germany->getTranslationsArray();
// Returns
[
'en' => ['name' => 'Germany'],
'de' => ['name' => 'Deutschland'],
'fr' => ['name' => 'Allemagne'],
];
```

### Available scopes
Expand Down

0 comments on commit 4fa184a

Please sign in to comment.