Add localization

This commit is contained in:
2020-05-21 18:52:40 +01:00
parent 4e1a99ea8c
commit c5783a452c
13 changed files with 392 additions and 29 deletions

View File

@@ -28,15 +28,20 @@
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
using Marechai.Shared;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
namespace Marechai.Services
{
public static class Register
{
internal static void RegisterServices(IServiceCollection services) =>
internal static void RegisterServices(IServiceCollection services)
{
services.AddSingleton<StringLocalizer<NavMenu>>();
// TODO: User reflection
// TODO: Use reflection
services.AddScoped<NewsService>();
}
}
}