From 27e927c606a3cc46669befa796fb25b36f4d0e0b Mon Sep 17 00:00:00 2001 From: "guusbeltman@gmail.com" Date: Tue, 22 Feb 2022 08:56:14 +0100 Subject: [PATCH 1/2] Fix file naming errors --- ...ommandHandler.de.nl.resx => DeleteBrandCommandHandler.nl.resx} | 0 ...ndler.en.nl.resx => AddEditDocumentTypeCommandHandler.nl.resx} | 0 ...andler.en.nl.resx => DeleteDocumentTypeCommandHandler.nl.resx} | 0 ...ndHandler.en.nl.resx => AddEditDocumentCommandHandler.nl.resx} | 0 ...andHandler.en.nl.resx => DeleteDocumentCommandHandler.nl.resx} | 0 ...l.resx => AddEditExtendedAttributeCommandLocalization.nl.resx} | 0 ...nl.resx => DeleteExtendedAttributeCommandLocalization.nl.resx} | 0 ...andHandler.en.nl.resx => AddEditProductCommandHandler.nl.resx} | 0 ...mandHandler.de.nl.resx => DeleteProductCommandHandler.nl.resx} | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename src/Application/Resources/Features/Brands/Commands/Delete/{DeleteBrandCommandHandler.de.nl.resx => DeleteBrandCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/DocumentTypes/Commands/AddEdit/{AddEditDocumentTypeCommandHandler.en.nl.resx => AddEditDocumentTypeCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/DocumentTypes/Commands/Delete/{DeleteDocumentTypeCommandHandler.en.nl.resx => DeleteDocumentTypeCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/Documents/Commands/AddEdit/{AddEditDocumentCommandHandler.en.nl.resx => AddEditDocumentCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/Documents/Commands/Delete/{DeleteDocumentCommandHandler.en.nl.resx => DeleteDocumentCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/ExtendedAttributes/Commands/AddEdit/{AddEditExtendedAttributeCommandLocalization.de.nl.resx => AddEditExtendedAttributeCommandLocalization.nl.resx} (100%) rename src/Application/Resources/Features/ExtendedAttributes/Commands/Delete/{DeleteExtendedAttributeCommandLocalization.de.nl.resx => DeleteExtendedAttributeCommandLocalization.nl.resx} (100%) rename src/Application/Resources/Features/Products/Commands/AddEdit/{AddEditProductCommandHandler.en.nl.resx => AddEditProductCommandHandler.nl.resx} (100%) rename src/Application/Resources/Features/Products/Commands/Delete/{DeleteProductCommandHandler.de.nl.resx => DeleteProductCommandHandler.nl.resx} (100%) diff --git a/src/Application/Resources/Features/Brands/Commands/Delete/DeleteBrandCommandHandler.de.nl.resx b/src/Application/Resources/Features/Brands/Commands/Delete/DeleteBrandCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/Brands/Commands/Delete/DeleteBrandCommandHandler.de.nl.resx rename to src/Application/Resources/Features/Brands/Commands/Delete/DeleteBrandCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/DocumentTypes/Commands/AddEdit/AddEditDocumentTypeCommandHandler.en.nl.resx b/src/Application/Resources/Features/DocumentTypes/Commands/AddEdit/AddEditDocumentTypeCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/DocumentTypes/Commands/AddEdit/AddEditDocumentTypeCommandHandler.en.nl.resx rename to src/Application/Resources/Features/DocumentTypes/Commands/AddEdit/AddEditDocumentTypeCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/DocumentTypes/Commands/Delete/DeleteDocumentTypeCommandHandler.en.nl.resx b/src/Application/Resources/Features/DocumentTypes/Commands/Delete/DeleteDocumentTypeCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/DocumentTypes/Commands/Delete/DeleteDocumentTypeCommandHandler.en.nl.resx rename to src/Application/Resources/Features/DocumentTypes/Commands/Delete/DeleteDocumentTypeCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/Documents/Commands/AddEdit/AddEditDocumentCommandHandler.en.nl.resx b/src/Application/Resources/Features/Documents/Commands/AddEdit/AddEditDocumentCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/Documents/Commands/AddEdit/AddEditDocumentCommandHandler.en.nl.resx rename to src/Application/Resources/Features/Documents/Commands/AddEdit/AddEditDocumentCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/Documents/Commands/Delete/DeleteDocumentCommandHandler.en.nl.resx b/src/Application/Resources/Features/Documents/Commands/Delete/DeleteDocumentCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/Documents/Commands/Delete/DeleteDocumentCommandHandler.en.nl.resx rename to src/Application/Resources/Features/Documents/Commands/Delete/DeleteDocumentCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/ExtendedAttributes/Commands/AddEdit/AddEditExtendedAttributeCommandLocalization.de.nl.resx b/src/Application/Resources/Features/ExtendedAttributes/Commands/AddEdit/AddEditExtendedAttributeCommandLocalization.nl.resx similarity index 100% rename from src/Application/Resources/Features/ExtendedAttributes/Commands/AddEdit/AddEditExtendedAttributeCommandLocalization.de.nl.resx rename to src/Application/Resources/Features/ExtendedAttributes/Commands/AddEdit/AddEditExtendedAttributeCommandLocalization.nl.resx diff --git a/src/Application/Resources/Features/ExtendedAttributes/Commands/Delete/DeleteExtendedAttributeCommandLocalization.de.nl.resx b/src/Application/Resources/Features/ExtendedAttributes/Commands/Delete/DeleteExtendedAttributeCommandLocalization.nl.resx similarity index 100% rename from src/Application/Resources/Features/ExtendedAttributes/Commands/Delete/DeleteExtendedAttributeCommandLocalization.de.nl.resx rename to src/Application/Resources/Features/ExtendedAttributes/Commands/Delete/DeleteExtendedAttributeCommandLocalization.nl.resx diff --git a/src/Application/Resources/Features/Products/Commands/AddEdit/AddEditProductCommandHandler.en.nl.resx b/src/Application/Resources/Features/Products/Commands/AddEdit/AddEditProductCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/Products/Commands/AddEdit/AddEditProductCommandHandler.en.nl.resx rename to src/Application/Resources/Features/Products/Commands/AddEdit/AddEditProductCommandHandler.nl.resx diff --git a/src/Application/Resources/Features/Products/Commands/Delete/DeleteProductCommandHandler.de.nl.resx b/src/Application/Resources/Features/Products/Commands/Delete/DeleteProductCommandHandler.nl.resx similarity index 100% rename from src/Application/Resources/Features/Products/Commands/Delete/DeleteProductCommandHandler.de.nl.resx rename to src/Application/Resources/Features/Products/Commands/Delete/DeleteProductCommandHandler.nl.resx From 5c6ef8346ad26f2e1f2a1d2ca57a6307ada414d2 Mon Sep 17 00:00:00 2001 From: "guusbeltman@gmail.com" Date: Tue, 22 Feb 2022 08:59:01 +0100 Subject: [PATCH 2/2] Hide LanguageSelector when there is no choice --- .../Shared/Components/LanguageSelector.razor | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Client/Shared/Components/LanguageSelector.razor b/src/Client/Shared/Components/LanguageSelector.razor index 398121e2f..9bd38e53e 100644 --- a/src/Client/Shared/Components/LanguageSelector.razor +++ b/src/Client/Shared/Components/LanguageSelector.razor @@ -1,12 +1,15 @@ @using BlazorHero.CleanArchitecture.Shared.Constants.Localization @inject Microsoft.Extensions.Localization.IStringLocalizer _localizer - - @foreach (var language in LocalizationConstants.SupportedLanguages) - { - @_localizer[language.DisplayName] - } - +@if (LocalizationConstants.SupportedLanguages.Length > 1) +{ + + @foreach (var language in LocalizationConstants.SupportedLanguages) + { + @_localizer[language.DisplayName] + } + +} @code {