-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add more words i18n #516
base: dev
Are you sure you want to change the base?
Conversation
@jerryc127 is attempting to deploy a commit to the RSS3 Team on Vercel. A member of the Team first needs to authorize it. |
@Innei Done |
@@ -7,6 +8,7 @@ import { FeedClaimModalContent } from "./feed-claim-modal" | |||
|
|||
export const useFeedClaimModal = ({ feedId }: { feedId?: string }) => { | |||
const { present } = useModalStack() | |||
const { t } = useTranslation("app") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { t } = useTranslation("app") | |
const { t } = useTranslation() |
export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) => | ||
useMutation({ | ||
export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) => { | ||
const { t } = useTranslation("app") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { t } = useTranslation("app") | |
const { t } = useTranslation() |
@@ -36,20 +36,22 @@ const formSchema = z.object({ | |||
}), | |||
}) | |||
|
|||
const NumberDisplay = ({ value }) => <span className="font-bold text-zinc-800">{value ?? 0}</span> | |||
|
|||
const list = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const list = [ | |
const list: { | |
key: I18nKeys; | |
title: string; | |
className: string; | |
}[] = [ | |
ConflictNum: <NumberDisplay value={mutation.data?.conflictItems.length} />, | ||
ErrorNum: <NumberDisplay value={mutation.data?.parsedErrorItems.length} />, | ||
}} | ||
/> | ||
</CardHeader> | ||
<CardContent className="space-y-6"> | ||
{list.map((item) => ( | ||
<div key={item.key}> | ||
<div className={cn("mb-4 text-lg font-medium", item.className)}>{item.title}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div className={cn("mb-4 text-lg font-medium", item.className)}>{item.title}</div> | |
<div className={cn("mb-4 text-lg font-medium", item.className)}>{t(item.title)}</div> |
{isWebBuild && ( | ||
<div> | ||
<span> | ||
Maybe web app doesn't support this content type. But you can{" "} | ||
<a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why deleted
Description
Linked Issues
Additional context