Feature: add date formatting option in custom api (#2228)

This commit is contained in:
Kirill Kuznetsov
2023-10-24 02:54:04 +03:00
committed by GitHub
parent f773e026d5
commit 3c4818a2b4
4 changed files with 13 additions and 2 deletions

View File

@@ -69,6 +69,9 @@ function formatValue(t, mapping, rawValue) {
case "bitrate":
value = t("common.bitrate", { value });
break;
case "date":
value = t("common.date", { value, dateStyle: mapping?.dateStyle ?? "long" });
break;
case "text":
default:
// nothing