mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-30 10:42:33 +05:30
Add translation to the publishedText
parameter
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
parent
be216fff94
commit
7388e4ca72
@ -48,7 +48,7 @@ def parse_related_video(related : JSON::Any, published : String? = nil, publishe
|
||||
"short_view_count" => JSON::Any.new(short_view_count || "0"),
|
||||
"author_verified" => JSON::Any.new(author_verified),
|
||||
"published" => JSON::Any.new(published || ""),
|
||||
"publishedText" => JSON::Any.new(publishedText || ""),
|
||||
"publishedText" => JSON::Any.new(translate(locale, "`x` ago", recode_date(video.published, locale)) || ""),
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user