🐛 The compile error has been fixed by ChatGPT which I dont know how did it made it
This commit is contained in:
parent
99f5d931c3
commit
793043aba2
@ -14,7 +14,8 @@ RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
RUN mkdir -p /app/publish/zh-Hans
|
||||
RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
|
@ -7,6 +7,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<UserSecretsId>cfdec342-d2f2-4a86-800b-93f0a0e4abde</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en-US;zh-Hans</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- NPM Configuration -->
|
||||
@ -101,12 +102,18 @@
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Email.LandingResource.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<!-- <EmbeddedResource Update="Resources\Localization\SharedResource.zh-hans.resx">-->
|
||||
<!-- <DependentUpon>SharedResource.resx</DependentUpon>-->
|
||||
<!-- </EmbeddedResource>-->
|
||||
<!-- <EmbeddedResource Update="Resources\Localization\AccountEventResource.zh-hans.resx">-->
|
||||
<!-- <DependentUpon>AccountEventResource.resx</DependentUpon>-->
|
||||
<!-- </EmbeddedResource>-->
|
||||
<EmbeddedResource Update="Resources\Localization\SharedResource.zh-hans.resx">
|
||||
<DependentUpon>SharedResource.resx</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Resources\Localization\AccountEventResource.zh-hans.resx">
|
||||
<DependentUpon>AccountEventResource.resx</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Resources\Localization\EmailResource.zh-hans.resx">
|
||||
<DependentUpon>EmailResource.resx</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Resources\Localization\NotificationResource.zh-hans.resx">
|
||||
<DependentUpon>NotificationResource.resx</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -63,8 +63,8 @@ builder.Services.Configure<RequestLocalizationOptions>(options =>
|
||||
{
|
||||
var supportedCultures = new[]
|
||||
{
|
||||
new CultureInfo("en-us"),
|
||||
new CultureInfo("zh-hans"),
|
||||
new CultureInfo("en-US"),
|
||||
new CultureInfo("zh-Hans"),
|
||||
};
|
||||
|
||||
options.SupportedCultures = supportedCultures;
|
||||
|
Loading…
x
Reference in New Issue
Block a user