diff --git a/src/components/app/posts-list/posts-list.tsx b/src/components/app/posts-list/posts-list.tsx index 46aa4e7..3df5c3d 100644 --- a/src/components/app/posts-list/posts-list.tsx +++ b/src/components/app/posts-list/posts-list.tsx @@ -2,6 +2,7 @@ import Link from "next/link"; import { Separator } from "@/components/ui/separator"; import { BlogPost } from "@/lib/definitions"; +import { LOCALE } from "@/lib/constants"; interface PostsListProps { posts: BlogPost[]; @@ -15,7 +16,8 @@ export const PostsList: React.FC = ({ posts }) => {

- {createdAt.toLocaleString()} + TODO: Remove hard-coded locale + {createdAt.toLocaleString(LOCALE)}

diff --git a/src/lib/constants.ts b/src/lib/constants.ts index f417393..ebe832a 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -1 +1,2 @@ export const POST_LIST_PAGE_SIZE = 10; +export const LOCALE = "en-GB";