set default culture for backoffice

This commit is contained in:
Jacob Overgaard
2023-08-08 09:54:54 +02:00
parent 9274c3fad9
commit 9b26aec4c3
3 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
@using System.Globalization
@using Microsoft.Extensions.Options
@using Umbraco.Cms.Core.Configuration.Models
@using Umbraco.Cms.Core.Hosting
@@ -17,7 +18,7 @@
}
<!DOCTYPE html>
<html lang="en">
<html lang="@CultureInfo.CurrentCulture.Name">
<head>
<base href="@backOfficePath.EnsureEndsWith('/')" />
<meta charset="UTF-8" />
@@ -114,6 +115,6 @@
<script type="module" src="@backofficeAssetsPath/apps/app/app.element.js"></script>
</head>
<body class="uui-font uui-text" style="margin: 0; padding: 0; overflow: hidden">
<umb-app></umb-app>
<umb-app culture="@CultureInfo.CurrentCulture.Name"></umb-app>
</body>
</html>

View File

@@ -1,3 +1,4 @@
@using System.Globalization
@using Microsoft.Extensions.Options
@using Umbraco.Cms.Core.Configuration.Models
@using Umbraco.Cms.Core.Hosting
@@ -17,7 +18,7 @@
}
<!DOCTYPE html>
<html lang="en">
<html lang="@CultureInfo.CurrentCulture.Name">
<head>
<base href="@backOfficePath.EnsureEndsWith('/')" />
<meta charset="UTF-8" />

View File

@@ -1,8 +1,9 @@
@using System.Globalization
@model Umbraco.Cms.Api.Management.BackOfficeLoginModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<!DOCTYPE html>
<html lang="en">
<html lang="@CultureInfo.CurrentCulture.Name">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="~/umbraco/login/favicon.svg" />