Skip to content

Commit

Permalink
Add translations (#15)
Browse files Browse the repository at this point in the history
* Add translations

* WIP

* WIP
  • Loading branch information
mako321 authored Nov 21, 2022
1 parent f541e6b commit bcc87c4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

services:
mysql:
image: mariadb
image: mariadb:10.5
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

services:
mysql:
image: mariadb
image: mariadb:10.5
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

services:
mysql:
image: mariadb
image: mariadb:10.5
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
Expand Down
7 changes: 7 additions & 0 deletions resources/lang/en/permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

use EscolaLms\Lrs\Enums\LrsPermissionEnum;

return [
LrsPermissionEnum::STATEMENT_LIST => 'Statement list',
];
7 changes: 7 additions & 0 deletions resources/lang/pl/permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

use EscolaLms\Lrs\Enums\LrsPermissionEnum;

return [
LrsPermissionEnum::STATEMENT_LIST => 'Lista zestawienia',
];
1 change: 1 addition & 0 deletions src/EscolaLmsLrsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function boot(): void
);

$this->loadRoutesFrom(__DIR__ . '/routes.php');
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'lrs');
}

/**
Expand Down

0 comments on commit bcc87c4

Please sign in to comment.