Skip to content
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

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

feat: add more words i18n #516

wants to merge 13 commits into from

Conversation

jerryc127
Copy link
Contributor

Description

Linked Issues

Additional context

Copy link

vercel bot commented Sep 19, 2024

@jerryc127 is attempting to deploy a commit to the RSS3 Team on Vercel.

A member of the Team first needs to authorize it.

@jerryc127
Copy link
Contributor Author

@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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { t } = useTranslation("app")
const { t } = useTranslation()

export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) =>
useMutation({
export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) => {
const { t } = useTranslation("app")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants