Refactor docs domain layer.

pull/625/head
Halil ibrahim Kalkan 6 years ago
parent d88d63a4e4
commit 93cd75ef40

@ -1,5 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Docs.Localization;

@ -2,7 +2,7 @@
using System.Runtime.Serialization;
using Volo.Abp;
namespace Volo.Docs.Documents
namespace Volo.Docs
{
[Serializable]
public class DocumentNotFoundException : BusinessException

@ -10,13 +10,11 @@
</PropertyGroup>
<ItemGroup>
<None Remove="Volo\Docs\Localization\Domain\en.json" />
<None Remove="Volo\Docs\Localization\Domain\tr.json" />
<EmbeddedResource Include="Volo\Docs\Localization\Domain\*.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Volo\Docs\Localization\Domain\en.json" />
<EmbeddedResource Include="Volo\Docs\Localization\Domain\tr.json" />
<Content Remove="Volo\Docs\Localization\Domain\*.json" />
</ItemGroup>
<ItemGroup>

@ -1,5 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Domain;
using Volo.Abp.Domain;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
@ -17,12 +16,15 @@ namespace Volo.Docs
{
Configure<VirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<DocsDomainModule>();
options.FileSets
.AddEmbedded<DocsDomainModule>();
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources.Get<DocsResource>().AddVirtualJson("/Volo/Docs/Localization/Domain");
options.Resources
.Get<DocsResource>()
.AddVirtualJson("/Volo/Docs/Localization/Domain");
});
}
}

Loading…
Cancel
Save