Add Accept-Language header support for per-request localization

This commit is contained in:
Shadowghost
2026-05-04 20:26:39 +02:00
parent e9942c3857
commit 4be3f5f1f9
28 changed files with 571 additions and 149 deletions

View File

@@ -50,6 +50,15 @@ public interface ILocalizationManager
/// <returns>System.String.</returns>
string GetLocalizedString(string phrase);
/// <summary>
/// Gets the localized string using the server's configured UICulture,
/// ignoring the current request's culture. Use this for data that is
/// persisted (e.g. activity log entries) rather than returned per-request.
/// </summary>
/// <param name="phrase">The phrase.</param>
/// <returns>System.String.</returns>
string GetServerLocalizedString(string phrase);
/// <summary>
/// Gets the localization options.
/// </summary>