Skip to content

Commit

Permalink
add all cultures to self service, add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Jan 10, 2024
1 parent 133ddcd commit 0de16af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
9 changes: 8 additions & 1 deletion KratosSelfService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ public void Configure(WebApplication app)
var supportedCultures = new[]
{
new CultureInfo("en"),
new CultureInfo("de")
new CultureInfo("de"),
new CultureInfo("es"),
new CultureInfo("fr"),
new CultureInfo("nl"),
new CultureInfo("pt"),
new CultureInfo("se")
};
app.UseRequestLocalization(new RequestLocalizationOptions
{
Expand All @@ -62,9 +67,11 @@ public void Configure(WebApplication app)

// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
// The default HSTS value is 30 days. You may want to change this
// for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}

app.UseStaticFiles();
app.UseRouting();
Expand Down

0 comments on commit 0de16af

Please sign in to comment.