@@ -165,7 +165,7 @@
///
public async Task ResetToDefaultsAsync()
{
- var confirmed = await DialogService.ShowMessageBox(
+ var confirmed = await DialogService.ShowMessageBoxAsync(
"Reset Theme",
"Are you sure you want to reset all theme settings to defaults? This action cannot be undone.",
yesText: "Reset",
diff --git a/src/BuildingBlocks/Blazor.UI/Components/Theme/FshThemePreview.razor b/src/BuildingBlocks/Blazor.UI/Components/Theme/FshThemePreview.razor
index e05e942580..3f91769770 100644
--- a/src/BuildingBlocks/Blazor.UI/Components/Theme/FshThemePreview.razor
+++ b/src/BuildingBlocks/Blazor.UI/Components/Theme/FshThemePreview.razor
@@ -1,16 +1,19 @@
@using FSH.Framework.Blazor.UI.Theme
+@using FSH.Framework.Shared.Localization
+@using Microsoft.Extensions.Localization
+@inject IStringLocalizer
L
- Live Preview
+ @L["Preview"]
- Light
+ @L["LightMode"]
- Dark
+ @L["DarkMode"]
@@ -26,7 +29,7 @@
{
}
- Brand Name
+ @L["Brand"]
@@ -38,16 +41,16 @@
@* Cards *@
- Dashboard Card
+ @L["Dashboard"]
- This is how your content cards will look with the selected theme settings.
+ @L["Preview"]
- Primary
+ @L["Primary"]
- Outlined
+ @L["Preview"]
@@ -56,22 +59,22 @@
@* Alerts *@
- Alerts
+ @L["Alerts"]
- Success message
+ @L["Success"]
- Info message
+ @L["Info"]
- Warning message
+ @L["Warning"]
- Error message
+ @L["Error"]
@@ -79,22 +82,22 @@
@* Form Elements *@
- Form Elements
+ @L["Form"]
-
-
Option 1
Option 2
-
-
+
+
diff --git a/src/BuildingBlocks/Blazor.UI/Components/Theme/FshTypographyPicker.razor b/src/BuildingBlocks/Blazor.UI/Components/Theme/FshTypographyPicker.razor
index 6be7bb25fd..0a14785303 100644
--- a/src/BuildingBlocks/Blazor.UI/Components/Theme/FshTypographyPicker.razor
+++ b/src/BuildingBlocks/Blazor.UI/Components/Theme/FshTypographyPicker.razor
@@ -1,12 +1,15 @@
@using FSH.Framework.Blazor.UI.Theme
+@using FSH.Framework.Shared.Localization
+@using Microsoft.Extensions.Localization
+@inject IStringLocalizer L
- Typography
+ @L["Typography"]
- Preview
+ @L["Preview"]
- Heading Text
+ @L["Preview"]
- This is body text. The quick brown fox jumps over the lazy dog.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ @L["Preview"]
Caption text with secondary color
diff --git a/src/BuildingBlocks/Blazor.UI/Components/User/FshAccountMenu.razor b/src/BuildingBlocks/Blazor.UI/Components/User/FshAccountMenu.razor
index b917d083ca..7613b7a3fa 100644
--- a/src/BuildingBlocks/Blazor.UI/Components/User/FshAccountMenu.razor
+++ b/src/BuildingBlocks/Blazor.UI/Components/User/FshAccountMenu.razor
@@ -6,8 +6,9 @@
TransformOrigin="Origin.TopRight"
PopoverClass="fsh-account-popover"
Dense="false">
-
-
+
+
@if (!string.IsNullOrEmpty(AvatarUrl))
{
@@ -51,14 +52,14 @@
@@ -68,7 +69,7 @@
diff --git a/src/BuildingBlocks/Blazor.UI/Extensions/FshDialogService.cs b/src/BuildingBlocks/Blazor.UI/Extensions/FshDialogService.cs
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/src/BuildingBlocks/Caching/Caching.csproj b/src/BuildingBlocks/Caching/Caching.csproj
index 3cc234917e..404954d8cc 100644
--- a/src/BuildingBlocks/Caching/Caching.csproj
+++ b/src/BuildingBlocks/Caching/Caching.csproj
@@ -4,6 +4,7 @@