aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-05-14 18:57:11 -0400
committerGitHub <noreply@github.com>2026-05-14 18:57:11 -0400
commit0a5a1f135f3fbf473a626c3935ef13c465cf158e (patch)
treead343024dd54de1afe0222ade9d411d9d09a6fd5 /Jellyfin.Api/Controllers/LibraryController.cs
parente6e19e3ce01f63d177453e0ba30851b8f75838d2 (diff)
parent7a5181c3fd3aea8a9913fe07086970c39c9bc1c4 (diff)
Add Accept-Language header support and cleanup translations (#16488)
* Add Accept-Language header support for per-request localization * Use native middleware * Cleanup * Add Fallback * Build BCP47 map reflexively * Address review comments
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index 69c17f2486..0839d62a5c 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -935,11 +935,11 @@ public class LibraryController : BaseJellyfinApiController
try
{
await _activityManager.CreateAsync(new ActivityLog(
- string.Format(CultureInfo.InvariantCulture, _localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Username, item.Name),
+ string.Format(CultureInfo.InvariantCulture, _localization.GetServerLocalizedString("UserDownloadingItemWithValues"), user.Username, item.Name),
"UserDownloadingContent",
User.GetUserId())
{
- ShortOverview = string.Format(CultureInfo.InvariantCulture, _localization.GetLocalizedString("AppDeviceValues"), User.GetClient(), User.GetDevice()),
+ ShortOverview = string.Format(CultureInfo.InvariantCulture, _localization.GetServerLocalizedString("AppDeviceValues"), User.GetClient(), User.GetDevice()),
ItemId = item.Id.ToString("N", CultureInfo.InvariantCulture)
}).ConfigureAwait(false);
}