lang
This commit is contained in:
36
src/lib/billboards/displayTypeLabel.ts
Normal file
36
src/lib/billboards/displayTypeLabel.ts
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user