Status string (FINISHED, RELEASING, NOT_YET_RELEASED, etc.).
Human-readable label for the status.
export function formatPublicationStatusLabel(status: string): string {
switch (status) {
case "FINISHED":
return "Finished";
case "RELEASING":
return "Releasing";
case "NOT_YET_RELEASED":
return "Not Yet Released";
case "CANCELLED":
return "Cancelled";
case "HIATUS":
return "Hiatus";
default:
return status;
}
}
Formats publication status string to human-readable label.