Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 30, 2024
1 parent 73ab727 commit 8d23d0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion locale/ar/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,6 @@
"modal.notifications.nonew": "لا توجد إشعارات جديدة",
"modal.signin.title": "تسجيل الدخول",
"notification.status.changed": "تم تغيير حالة",
"notification.status.to": "إلى"
"notification.status.to": "إلى",
"home.similar.noposts": "لم يتم العثور على منشورات مشابهة لـ '{title}'."
}
7 changes: 6 additions & 1 deletion public/pages/Home/components/SimilarPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,19 @@ export class SimilarPosts extends React.Component<SimilarPostsProps, SimilarPost
public render() {
const title = t({ id: "home.similar.title", message: "Similar posts" })
const subtitle = t({ id: "home.similar.subtitle", message: "Consider voting on existing posts instead." })
const emptyText = t({
id: "home.similar.noposts",
message: "No similar posts matched '{title}'.",
values: { title: this.props.title },
})

return (
<>
<PageTitle title={title} subtitle={subtitle} />
{this.state.loading ? (
<Loader />
) : (
<ListPosts posts={this.state.posts} tags={this.props.tags} emptyText={`No similar posts matched '${this.props.title}'.`} />
<ListPosts posts={this.state.posts} tags={this.props.tags} emptyText={emptyText} />
)}
</>
)
Expand Down

0 comments on commit 8d23d0d

Please sign in to comment.