Skip to content

Commit

Permalink
Allow Role's $name and $description to be translated (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Jun 1, 2021
1 parent 63662dd commit 827b2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public function jsonSerialize()
{
return [
'key' => $this->key,
'name' => $this->name,
'description' => $this->description,
'name' => __($this->name),
'description' => __($this->description),
'permissions' => $this->permissions,
];
}
Expand Down

0 comments on commit 827b2da

Please sign in to comment.