This commit is contained in:
payacom
2026-07-23 15:58:15 +03:30
parent af5b27b610
commit a1d7db5e7e
445 changed files with 23456 additions and 8865 deletions

View File

@@ -0,0 +1,36 @@
import type { TFunction } from "i18next";
export function getBillboardDisplayTypeLabel(
t: TFunction<"common">,
type?: string
): string {
switch (type) {
case "special":
return t("billboards.displayTypes.specialBadge");
case "normal":
return t("billboards.displayTypes.normal");
case "free":
return t("billboards.displayTypes.free");
case "highlight":
return t("billboards.displayTypes.highlight");
default:
return t("billboards.displayTypes.highlight");
}
}
export function getBillboardDisplayTypeOptionLabel(
t: TFunction<"common">,
type?: string
): string {
switch (type) {
case "normal":
case "free":
return t("billboards.displayTypes.normal");
case "special":
return t("billboards.displayTypes.special");
case "highlight":
return t("billboards.displayTypes.highlight");
default:
return t("billboards.displayTypes.highlight");
}
}