Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translator section add in navbar blade #1

Closed
wants to merge 1 commit into from
Closed

translator section add in navbar blade #1

wants to merge 1 commit into from

Conversation

mah-shamim
Copy link
Collaborator

translator button add

@mah-shamim
Copy link
Collaborator Author

Add Translator button for dashboard #2

Copy link
Owner

@hafijul233 hafijul233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's will affect small device look.
can please replace it with this code
<li class="nav-item dropdown"> <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false"> <i class="flag-icon @if(session()->get('locale') == 'bd') flag-icon-bd @else flag-icon-us @endif"></i> </a> <div class="dropdown-menu dropdown-menu-right p-0" style="left: inherit; right: 0;"> <a href="{{ route('translate-locale') }}?language=en" class="dropdown-item @if(session()->get('locale') == 'en') active @endif"> <i class="flag-icon flag-icon-us mr-2"></i> English </a> <a href="{{ route('translate-locale') }}?language=bd" class="dropdown-item @if(session()->get('locale') == 'bd') active @endif"> <i class="flag-icon flag-icon-bd mr-2"></i> Bangla </a> </div> </li>
it will create a language dropdown with country flags
please also added library added stack on top of navbar file

@push('plugin-style')
    <link rel="stylesheet" href="{{ asset('plugins/flag-icon-css/css/flag-icon.min.css') }}">
@endpush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants