diff options
| author | RadoslavL <63926126+RadoslavL@users.noreply.github.com> | 2023-11-12 20:51:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-12 20:51:33 +0200 |
| commit | 7388e4ca72dd55e329b5105959fe215db0baf7c0 (patch) | |
| tree | a36907902bf1587624200aedbaa0fc71fe29819b /src | |
| parent | be216fff94016ed5465b43ad6ef0c589290e7e21 (diff) | |
| download | invidious-7388e4ca72dd55e329b5105959fe215db0baf7c0.tar.gz invidious-7388e4ca72dd55e329b5105959fe215db0baf7c0.tar.bz2 invidious-7388e4ca72dd55e329b5105959fe215db0baf7c0.zip | |
Add translation to the `publishedText` parameter
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos/parser.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index e8988587..82164e3c 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -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 |
