Skip to content

Commit b164e8b

Browse files
author
Marc Cámara
committed
Merge pull request #2 from djordje/config/languageBarClass
Added ability to use custom class for language bar unordered list.
2 parents d504026 + 4585921 commit b164e8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/config/config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// Take the browser language if it's not defined in the route?
99
// If false, system will take app.php locale attribute
1010
'useBrowserLanguage' => true,
11+
12+
// Specify custom class for language bar unordered list
13+
'languageBarClass' => 'laravel_language_chooser',
1114

1215
// List of all languages supported
1316
// Feel free to add a new one

src/views/languagebar.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="laravel_language_chooser">
1+
<ul class="{{ Config::get('laravel-localization::languageBarClass') }}">
22
@foreach($languages as $key => $lang)
33
@if($key == $active)
44
<li class="active">{{$lang}}</li>

0 commit comments

Comments
 (0)