Skip to content

Commit

Permalink
Merge pull request #81 from iTzSofteis/make-api-abilities-translateable
Browse files Browse the repository at this point in the history
make api abilities translateable
  • Loading branch information
rupadana authored Jan 18, 2025
2 parents e8bada8 + ed87d37 commit ff812c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/TokenResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function getAbilitiesSchema(): array
$extractedAbilities = [];
foreach ($handler as $handlerClass => $ability) {
foreach ($ability as $a) {
$extractedAbilities[$a] = $a;
$extractedAbilities[$a] = __($a);
}
}
$schema[] = Section::make(str($resource)->beforeLast('Resource')->explode('\\')->last())
Expand Down

0 comments on commit ff812c1

Please sign in to comment.