mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-25 10:07:15 +01:00
Add Accept-Language header support for per-request localization
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user