Add date formatting to custom api

This commit is contained in:
Kirill Kuznetsov 2023-10-23 23:25:07 +03:00
parent bd61f14edf
commit 2dd1b0417a

View File

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