mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Feature: add date formatting option in custom api (#2228)
This commit is contained in:
parent
f773e026d5
commit
3c4818a2b4
4 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue