mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add localization
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user