Add translation to the `publishedText` parameter

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
RadoslavL 2023-11-12 20:51:33 +02:00 committed by GitHub
parent be216fff94
commit 7388e4ca72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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