feat: enhance date formatting in changelog
Build & Push Docker Image / build (push) Has been cancelled

- Added support for Latin digit formatting in release dates to improve readability.
- Updated the ChangelogVersionCard component to ensure proper text direction for dates.
This commit is contained in:
ar.badiei
2026-07-12 02:08:11 +03:30
parent 6cb9e2aac5
commit f0c290786e
5 changed files with 49 additions and 15 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ function PostCard({
const date = post.date ? formatDateShamsi(post.date) : null;
const authorName = post._embedded?.author?.[0]?.name ?? null;
const thumbnailUrl = getFeaturedImageUrl(post, size === "large" ? "medium_large" : "medium");
const href = `/blog/${encodeURIComponent(post.slug)}`;
const href = `/blog/${post.slug}`;
return (
<Link
@@ -81,7 +81,7 @@ function PostCardRow({ post }: { post: WpPost }) {
const date = post.date ? formatDateShamsi(post.date) : null;
const authorName = post._embedded?.author?.[0]?.name ?? null;
const thumbnailUrl = getFeaturedImageUrl(post, "medium");
const href = `/blog/${encodeURIComponent(post.slug)}`;
const href = `/blog/${post.slug}`;
return (
<Link