Merge pull request #1025 from hishamco/language-switcher

Show LanguageSwitcher if more than one culture
This commit is contained in:
Shaun Walker 2021-01-02 14:06:34 -05:00 committed by GitHub
commit 7d84f156f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
@inject ILocalizationService LocalizationService
@inject NavigationManager NavigationManager
@if (_supportedCultures != null)
@if (_supportedCultures?.Count() > 1)
{
<div class="btn-group" role="group">
<button id="btnCultures" type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">