public override void ConfigureServices(ServiceConfigurationContext context) { AbpStringLocalizerFactory.Replace(context.Services); Configure <VirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded <AbpLocalizationModule>("Volo.Abp", "Volo/Abp"); }); Configure <AbpLocalizationOptions>(options => { options.Resources .Add <AbpValidationResource>("en") .AddVirtualJson("/Localization/Resources/AbpValidation"); }); }
public override void ConfigureServices(IServiceCollection services) { AbpStringLocalizerFactory.Replace(services); services.Configure <VirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded <AbpLocalizationModule>("Volo.Abp", "Volo/Abp"); }); services.Configure <AbpLocalizationOptions>(options => { options.Resources.AddVirtualJson <AbpValidationResource>("en", "/Localization/Resources/AbpValidation"); }); services.AddAssemblyOf <AbpLocalizationModule>(); }