feat: Cookie-basierte Lokalisierung implementiert, ToLocal Erweiterungsmethoden hinzugefügt und Translation-Service entfernt. Stattdessen wird IStringLocalizer<T> verwendet, abhängig von der Situation wie Cookie-basierter Kultur oder Kultur basierend auf der Route.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
using AutoMapper;
|
||||
using DigitalData.Core.Contracts.Application;
|
||||
using DigitalData.Core.Contracts.Infrastructure;
|
||||
using DigitalData.Core.Contracts.CultureServices;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
||||
|
||||
namespace DigitalData.Core.Application
|
||||
{
|
||||
@@ -28,8 +29,8 @@ namespace DigitalData.Core.Application
|
||||
/// <param name="repository">The CRUD repository for accessing and manipulating entity data.</param>
|
||||
/// <param name="translationService">The service used for key-based text translations, facilitating localization.</param>
|
||||
/// <param name="mapper">The AutoMapper instance for mapping between DTOs and entities.</param>
|
||||
public BasicCRUDService(TCRUDRepository repository, IKeyTranslationService translationService, IMapper mapper) :
|
||||
base(repository, translationService, mapper)
|
||||
public BasicCRUDService(TCRUDRepository repository, IStringLocalizer defaultLocalizer, IMapper mapper) :
|
||||
base(repository, defaultLocalizer, mapper)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user