Feature Request: Localization for trending iv-org#331

This commit is contained in:
Dmitry Sandalov
2021-10-21 14:54:15 +03:00
parent 129779a757
commit d9c58c4837
8 changed files with 34 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ module Invidious::Routes::Feeds
trending_type ||= "Default"
region = env.params.query["region"]?
region ||= "US"
region ||= env.get("preferences").as(Preferences).region
begin
trending, plid = fetch_trending(trending_type, region, locale)