Skip to content

Commit

Permalink
Add LocalizedString::internationalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdifabio committed Oct 31, 2017
1 parent b2e99f4 commit cd59ebc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/LocalizedString.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public function getLocale(): string
return $this->locale;
}

public function internationalize(): InternationalizedString
{
return InternationalizedString::create()->with($this);
}

public function equals($object): bool
{
return $object instanceof LocalizedString
Expand Down

0 comments on commit cd59ebc

Please sign in to comment.