Skip to content

Commit 827b2da

Browse files
authored
Allow Role's $name and $description to be translated (#798)
1 parent 63662dd commit 827b2da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Role.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function jsonSerialize()
7171
{
7272
return [
7373
'key' => $this->key,
74-
'name' => $this->name,
75-
'description' => $this->description,
74+
'name' => __($this->name),
75+
'description' => __($this->description),
7676
'permissions' => $this->permissions,
7777
];
7878
}

0 commit comments

Comments
 (0)