37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import type { Locale } from "@/lib/i18n";
|
|
|
|
const directoryCopy = {
|
|
ar: {
|
|
segment: "melodies",
|
|
eyebrow: "الألحان",
|
|
title: "ألحان ومقاطع صوتية مختارة",
|
|
description: "استمع إلى مجموعة من الألحان والمقاطع الصوتية المنشورة.",
|
|
empty: "لا توجد ألحان منشورة ضمن هذا التصنيف بعد.",
|
|
filterLabel: "فلترة الألحان حسب التصنيف",
|
|
all: "الكل",
|
|
play: "تشغيل",
|
|
download: "تحميل الصوت",
|
|
back: "العودة إلى الألحان",
|
|
},
|
|
en: {
|
|
segment: "melodies",
|
|
eyebrow: "Melodies",
|
|
title: "Selected melodies and audio pieces",
|
|
description: "Listen to a collection of published melodies and audio pieces.",
|
|
empty: "No published melodies are available in this category yet.",
|
|
filterLabel: "Filter melodies by category",
|
|
all: "All",
|
|
play: "Play",
|
|
download: "Download audio",
|
|
back: "Back to melodies",
|
|
},
|
|
} as const;
|
|
|
|
export function getMelodyDirectoryCopy(locale: Locale) {
|
|
return directoryCopy[locale];
|
|
}
|
|
|
|
export function getMelodyPath(locale: Locale, slug?: string) {
|
|
return `/${locale}/melodies${slug ? `/${slug}` : ""}`;
|
|
}
|