Skip to content

Commit

Permalink
🐛 fix(subscribe): Jumps and internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Dec 1, 2024
1 parent 8425b13 commit 13fdec3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/admin/locales/en-US/subscribe.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"quota": "Purchase Limit/Time",
"replacement": "Reset Price/Time",
"sell": "Sell",
"show": "Show",
"show": "Home display",
"subscribe": "Subscribe",
"subscribeGroup": "Subscription Group",
"tabs": {
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/locales/zh-CN/subscribe.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"quota": "限购/次",
"replacement": "重置价格/次",
"sell": "销售",
"show": "显示",
"show": "首页显示",
"subscribe": "订阅",
"subscribeGroup": "订阅组",
"tabs": {
Expand Down
5 changes: 3 additions & 2 deletions apps/user/components/main/product-showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Separator } from '@shadcn/ui/separator';
import { useQuery } from '@tanstack/react-query';
import { motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import Link from 'next/link';

export function ProductShowcase() {
const t = useTranslations('index');
Expand Down Expand Up @@ -118,9 +119,9 @@ export function ProductShowcase() {
<motion.div>
<Button
className='absolute bottom-0 left-0 w-full rounded-b-xl rounded-t-none'
onClick={() => {}}
asChild
>
{t('subscribe')}
<Link href='/subscribe'>{t('subscribe')}</Link>
</Button>
</motion.div>
</CardFooter>
Expand Down
2 changes: 1 addition & 1 deletion apps/user/locales/en-US/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"global_map_description": "Explore seamless global connectivity. Choose network services that suit your needs and stay connected anytime, anywhere.",
"global_map_title": "Global Connectivity, Effortless Peace of Mind",
"global_map_itle": "Global Connection, Easy and Worry-free",
"locations": "Locations",
"per_month": "Per Month",
"product_showcase_description": "Let us help you select the package that best suits you and enjoy exploring it.",
Expand Down

0 comments on commit 13fdec3

Please sign in to comment.