Skip to content

Commit 794220a

Browse files
authored
Merge pull request #296 from polishlang/fix/language-select
Fix language select
2 parents 91ca5db + 03b6fc4 commit 794220a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/View/Components/LanguageSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LanguageSelector extends Component
1616

1717
public function __construct()
1818
{
19-
$this->formatted_languages = collect(Config::get('localized-routes.supported-locales', []))->map(function ($lang) {
19+
$this->formatted_languages = collect(Config::get('localized-routes.supported_locales', []))->map(function ($lang) {
2020
return [
2121
'language_name' => $lang,
2222
'language_name_native' => Config::get("localized-routes.locales-name-native.{$lang}", Str::upper($lang)),

lang/pl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Follow on Twitter for important dates": "Śledź ważne daty na Twitterze",
1616
"Future release": "Przyszłe wydanie",
1717
"Future releases": "Przyszłe wydania",
18-
"Greetings from the author of the translations": "Tłumaczenie: Olsza (github.com/olsza || @czlowiek_it)",
18+
"Greetings from the author of the translations": "Tłumaczenie: Olsza (github.com/olsza || www: olsza.czlowiek.it)",
1919
"Keep patch updated.": "Aktualizuj poprawki.",
2020
"Laravel News \"Laravel Releases\" page": "Laravel News \"Laravel Releases\"",
2121
"Laravel Version": "Wersja Laravel",

resources/views/partials/modules/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header class="py-8 bg-gray-700">
22
<div class="flex flex-col max-w-screen-xl px-4 mx-auto sm:items-center sm:justify-between sm:flex-row-reverse sm:px-6 lg:px-8">
33

4-
@if (Config::has('localized-routes.supported-locales'))
4+
@if (Config::has('localized-routes.supported_locales'))
55
<x-language-selector />
66
@endif
77

0 commit comments

Comments
 (0)