Skip to content

Commit

Permalink
Add translations (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mako321 authored Nov 18, 2022
1 parent 4cf35c7 commit 1f4490e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/lang/en/permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

use EscolaLms\Tags\Enums\TagsPermissionsEnum;

return [
TagsPermissionsEnum::TAGS_CREATE => 'Create tag',
TagsPermissionsEnum::TAGS_DELETE => 'Delete tag',
TagsPermissionsEnum::TAGS_UPDATE => 'Update tag',
];
9 changes: 9 additions & 0 deletions resources/lang/pl/permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

use EscolaLms\Tags\Enums\TagsPermissionsEnum;

return [
TagsPermissionsEnum::TAGS_CREATE => 'Utwórz tag',
TagsPermissionsEnum::TAGS_DELETE => 'Usuń tag',
TagsPermissionsEnum::TAGS_UPDATE => 'Aktualizuj tag',
];
1 change: 1 addition & 0 deletions src/EscolaLmsTagsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function boot()
}

AdministrableConfig::registerConfig('escolalms_tags.morphable_classes');
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'tags');
}

protected function bootForConsole()
Expand Down

0 comments on commit 1f4490e

Please sign in to comment.