fix(i18n): use English runtime text and localize system UI

This commit is contained in:
Arthur Koba
2026-10-25 19:44:15 +03:00
parent ada0550571
commit 65a96670d5
289 changed files with 8092 additions and 3426 deletions
+15 -8
View File
@@ -1,3 +1,6 @@
'use client';
import { useTranslations } from 'next-intl';
import * as React from 'react';
import Link from 'next/link';
import { motion } from 'motion/react';
@@ -15,6 +18,8 @@ export interface HeroSectionProps {
export const HeroSection = React.memo(function HeroSection({
className,
}: HeroSectionProps) {
const rt = useTranslations('runtime');
return (
<section className={cn('w-full', className)}>
<motion.div
@@ -42,7 +47,9 @@ export const HeroSection = React.memo(function HeroSection({
className='text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight leading-[1.1] mb-6 text-foreground'
>
Modern Platform <br />
<span className='bg-clip-text text-primary'>为二次开发而生</span>
<span className='bg-clip-text text-primary'>
{rt('built_for_customization_ff3cf147')}
</span>
</motion.h1>
<motion.p
@@ -56,9 +63,9 @@ export const HeroSection = React.memo(function HeroSection({
}}
className='text-sm md:text-base text-muted-foreground max-w-xl leading-relaxed mb-10'
>
通用的、现代化的后台管理系统脚手架
{rt('a_modern_administration_platform_116688ff')}
<br className='hidden md:block' />
开箱即用、完整基建、极易扩展,助您快速构建企业级应用。
{rt('ready_to_use_infrastructure_that_is_easy_77776634')}
</motion.p>
<motion.div
@@ -77,7 +84,7 @@ export const HeroSection = React.memo(function HeroSection({
size='lg'
className='w-full rounded-full bg-primary hover:bg-primary/90 font-medium transition-all active:scale-95'
>
立即开始
{rt('get_started_d1f9c450')}
<ArrowRight className='size-4' />
</Button>
</Link>
@@ -93,7 +100,7 @@ export const HeroSection = React.memo(function HeroSection({
size='lg'
className='w-full rounded-full font-medium active:scale-95'
>
了解更多
{rt('learn_more_ca66c2da')}
</Button>
</Link>
</motion.div>
@@ -107,15 +114,15 @@ export const HeroSection = React.memo(function HeroSection({
>
<div className='flex items-center gap-2'>
<Zap className='w-5 h-5 text-yellow-500' />
<span>开箱即用</span>
<span>{rt('ready_to_use_c58cfea2')}</span>
</div>
<div className='flex items-center gap-2'>
<Globe className='w-5 h-5 text-blue-500' />
<span>高度可扩展</span>
<span>{rt('highly_extensible_9dfa6c10')}</span>
</div>
<div className='flex items-center gap-2'>
<Shield className='w-5 h-5 text-green-500' />
<span>工业级基建</span>
<span>{rt('production_infrastructure_08c3a5e6')}</span>
</div>
</motion.div>
</div>