Skip to content

Commit

Permalink
chore: Added some test items to about page to test culture stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vyruz1986 committed Oct 6, 2023
1 parent 0c7968f commit 22df7a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion HaSpMan.Web.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WORKDIR /src/Web
RUN dotnet publish -c Release -o /app

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
WORKDIR /app
COPY --from=build /app .

Expand Down
7 changes: 7 additions & 0 deletions Web/Pages/Public/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using System.Security.Claims
@using System.Reflection
@using Microsoft.AspNetCore.Components.Authorization
@using System.Globalization

@inject AuthenticationStateProvider AuthenticationStateProvider

Expand Down Expand Up @@ -30,10 +31,16 @@
}
</p>

<h2>Culture info</h2>
<p>Current UI culture: @CultureInfo.CurrentUICulture.DisplayName</p>
<p>Amount test: @TestAmount.ToString("C", CultureInfo.CurrentUICulture)</p>

@code {
private string? authMessage;
private IEnumerable<Claim> claims = Enumerable.Empty<Claim>();

private decimal TestAmount = 123.56M;

private string _version
{
get
Expand Down

0 comments on commit 22df7a5

Please sign in to comment.