diff --git a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs index 1ba0c0cc1..9bd6d6b94 100644 --- a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs +++ b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs @@ -1,5 +1,6 @@ using LINGYUN.Abp.Notifications.Localization; using Volo.Abp.Localization; +using Volo.Abp.Localization.ExceptionHandling; using Volo.Abp.Modularity; using Volo.Abp.Users; using Volo.Abp.VirtualFileSystem; @@ -24,5 +25,10 @@ public class AbpNotificationsDomainSharedModule : AbpModule .Get() .AddVirtualJson("/LINGYUN/Abp/Notifications/Localization/DomainShared"); }); + + Configure(options => + { + options.MapCodeNamespace(NotificationsErrorCodes.Namespace, typeof(NotificationsResource)); + }); } }