diff --git a/DigitalData.Core.API/LocalizationExtensions.cs b/DigitalData.Core.API/LocalizationExtensions.cs
index a33016d..ab1d1f4 100644
--- a/DigitalData.Core.API/LocalizationExtensions.cs
+++ b/DigitalData.Core.API/LocalizationExtensions.cs
@@ -55,5 +55,12 @@ namespace DigitalData.Core.API
app.UseRequestLocalization(options);
return app;
}
+
+ ///
+ /// Converts all localized strings to a dictionary.
+ ///
+ /// The instance containing the localized strings.
+ /// A dictionary containing all localized strings, where the key is the name of the string and the value is the localized value.
+ public static Dictionary ToDictionary(this IStringLocalizer localizer) => localizer.GetAllStrings().ToDictionary(ls => ls.Name, ls => ls.Value);
}
-}
+}
\ No newline at end of file