Add LanguageSwitcher component
This commit is contained in:
@ -48,6 +48,12 @@
|
||||
@if (Configuration.GetSection("Runtime").Value == "WebAssembly")
|
||||
{
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
<script>
|
||||
window.oqtaneCulture = {
|
||||
get: () => window.localStorage['OqtaneCulture'],
|
||||
set: (value) => window.localStorage['OqtaneCulture'] = value
|
||||
};
|
||||
</script>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -127,6 +127,7 @@ namespace Oqtane
|
||||
services.AddScoped<ISiteTemplateService, SiteTemplateService>();
|
||||
services.AddScoped<ISqlService, SqlService>();
|
||||
services.AddScoped<ISystemService, SystemService>();
|
||||
services.AddScoped<ILocalizationService, LocalizationService>();
|
||||
|
||||
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||
|
||||
|
Reference in New Issue
Block a user