Skip to content

Commit 00dd9ab

Browse files
author
Petrekanics Máté
committed
remove language switcher package and update hr translation
1 parent cac4c9e commit 00dd9ab

File tree

4 files changed

+5
-89
lines changed

4 files changed

+5
-89
lines changed

app/Providers/Filament/AdminPanelProvider.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Providers\Filament;
44

55
use App\Services\GitHub\Repository;
6-
use BezhanSalleh\FilamentLanguageSwitch\LanguageSwitch;
76
use Filament\FontProviders\LocalFontProvider;
87
use Filament\Http\Middleware\Authenticate;
98
use Filament\Http\Middleware\DisableBladeIconComponents;
@@ -19,18 +18,11 @@
1918
use Illuminate\Routing\Middleware\SubstituteBindings;
2019
use Illuminate\Session\Middleware\AuthenticateSession;
2120
use Illuminate\Session\Middleware\StartSession;
22-
use Illuminate\Support\Facades\File;
2321
use Illuminate\View\Middleware\ShareErrorsFromSession;
2422

2523
class AdminPanelProvider extends PanelProvider
2624
{
27-
public function boot()
28-
{
29-
LanguageSwitch::configureUsing(function (LanguageSwitch $switch) {
30-
$switch
31-
->locales(collect(File::directories(lang_path()))->map(fn ($dir) => basename($dir))->toArray());
32-
});
33-
}
25+
public function boot() {}
3426

3527
public function panel(Panel $panel): Panel
3628
{

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"license": "MIT",
1616
"require": {
1717
"php": "^8.2",
18-
"bezhansalleh/filament-language-switch": "^3.1",
1918
"chrisullyott/php-filesize": "^4.2.1",
2019
"dragonmantank/cron-expression": "^3.4.0",
2120
"filament/filament": "^3.3.39",

composer.lock

Lines changed: 1 addition & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/en/passwords.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
|
1414
*/
1515

16-
'reset' => 'Your password has been reset!',
17-
'sent' => 'We have emailed your password reset link!',
18-
'password' => 'The password and confirmation must match and contain at least six characters.',
16+
'reset' => 'Vaša lozinka je poništena!',
17+
'sent' => 'Poslali smo vam poveznicu za poništavanje lozinke e-mailom!',
18+
'password' => 'Lozinka i potvrda moraju se podudarati i sadržavati najmanje šest znakova.',
1919

2020
];

0 commit comments

Comments
 (0)