Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add application language resource #7

Merged
merged 1 commit into from
Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions src/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,87 @@
<ItemGroup>
<Folder Include="Documents\Commands\Import\" />
<Folder Include="Features\ApprovalDatas\EventHandlers\" />
<Folder Include="Resources\Documents\Commands\Import\" />
<Folder Include="Resources\Features\ApprovalDatas\Commands\Import\" />
<Folder Include="Workflow\Approval\Data\" />
</ItemGroup>

<ItemGroup>
<Compile Update="Resources\Customers\Commands\Import\ImportCustomersCommandHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ImportCustomersCommandHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\Customers\Queries\Export\ExportCustomersQueryHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExportCustomersQueryHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\Documents\Queries\Export\ExportDocumentsQueryHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExportDocumentsQueryHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\DocumentTypes\Commands\Import\ImportDocumentTypesCommandHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ImportDocumentTypesCommandHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\DocumentTypes\Queries\Export\ExportDocumentTypesQueryHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExportDocumentTypesQueryHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\Features\ApprovalDatas\Queries\Export\ExportApprovalDatasQueryHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExportApprovalDatasQueryHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\KeyValues\Commands\Import\ImportKeyValuesCommandHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ImportKeyValuesCommandHandler.resx</DependentUpon>
</Compile>
<Compile Update="Resources\KeyValues\Queries\Export\ExportKeyValuesQueryHandler.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExportKeyValuesQueryHandler.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Resources\Customers\Commands\Import\ImportCustomersCommandHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ImportCustomersCommandHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Customers\Queries\Export\ExportCustomersQueryHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ExportCustomersQueryHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Documents\Queries\Export\ExportDocumentsQueryHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ExportDocumentsQueryHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\DocumentTypes\Commands\Import\ImportDocumentTypesCommandHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ImportDocumentTypesCommandHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\DocumentTypes\Queries\Export\ExportDocumentTypesQueryHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ExportDocumentTypesQueryHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Features\ApprovalDatas\Queries\Export\ExportApprovalDatasQueryHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ExportApprovalDatasQueryHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\KeyValues\Commands\Import\ImportKeyValuesCommandHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ImportKeyValuesCommandHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\KeyValues\Queries\Export\ExportKeyValuesQueryHandler.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ExportKeyValuesQueryHandler.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public async Task<Result> Handle(ImportCustomersCommand request, CancellationTok
{ _localizer["Address"], (row,item) => item.Address = row[_localizer["Address"]].ToString() },
{ _localizer["Address Of English"], (row,item) => item.AddressOfEnglish = row[_localizer["Address Of English"]]?.ToString() },
{ _localizer["Contract"], (row,item) => item.Contract = row[_localizer["Contract"]]?.ToString() },
{ _localizer["Email"], (row,item) => item.Email = row[_localizer["Email"]]?.ToString() },
{ _localizer["Phone Number"], (row,item) => item.PhoneNumber = row[_localizer["Phone Number"]]?.ToString() },
{ _localizer["Fax"], (row,item) => item.Fax = row[_localizer["Fax"]]?.ToString() },
{ _localizer["Comments"], (row,item) => item.Comments = row[_localizer["Comments"]]?.ToString() }
Expand Down Expand Up @@ -123,6 +124,7 @@ public async Task<byte[]> Handle(CreateCustomerTemplateCommand request, Cancella
_localizer["Address"],
_localizer["Address Of English"],
_localizer["Contract"],
_localizer["Email"],
_localizer["Phone Number"],
_localizer["Fax"],
_localizer["Comments"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task<byte[]> Handle(ExportApprovalDatasQuery request, CancellationT
{ _localizer["Outcome"], item => item.Outcome },
{ _localizer["Comments"], item => item.Comments },
{ _localizer["Approved DateTime"], item => item.ApprovedDateTime?.ToString("yyyy-MM-dd HH:mm:ss") }
}, _localizer["Documents"]
}, _localizer["ApprovalHistories"]
);
return result;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading