fix(i18n): 补齐九种语言的翻译并修复国际化检查

补齐页面缺译,统一动态文案的整句插值方式。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent ef3f405190
commit 67969a041d
146 changed files with 16591 additions and 11007 deletions
+31 -27
View File
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { useTranslation } from 'react-i18next';
import React from 'react';
import { Sparkles } from 'lucide-react';
@@ -37,34 +38,37 @@ const AuthCardHeader = ({
logoNode,
wrapperClassName = 'mb-5',
logoWrapperClassName = 'mb-3',
}) => (
<div
className={`flex flex-col items-center justify-center ${wrapperClassName}`}
>
<div className={`relative ${logoWrapperClassName}`}>
{/* Logo 光环 */}
<div className='absolute -inset-1.5 bg-gradient-to-r from-brand-from/30 to-brand-to/30 rounded-xl blur-md opacity-60' />
<div className='relative p-2 bg-white dark:bg-neutral-800 rounded-xl shadow-md'>
{logoNode || (
<img
src={logo}
alt='Logo'
className='h-10 w-10 rounded-lg object-cover'
/>
)}
}) => {
const { t } = useTranslation();
return (
<div
className={`flex flex-col items-center justify-center ${wrapperClassName}`}
>
<div className={`relative ${logoWrapperClassName}`}>
{/* Logo 光环 */}
<div className='absolute -inset-1.5 bg-gradient-to-r from-brand-from/30 to-brand-to/30 rounded-xl blur-md opacity-60' />
<div className='relative p-2 bg-white dark:bg-neutral-800 rounded-xl shadow-md'>
{logoNode || (
<img
src={logo}
alt={t('网站标志')}
className='h-10 w-10 rounded-lg object-cover'
/>
)}
</div>
<Sparkles
size={14}
className='absolute -top-0.5 -right-0.5 text-amber-400 motion-safe:animate-pulse'
/>
</div>
<Sparkles
size={14}
className='absolute -top-0.5 -right-0.5 text-amber-400 motion-safe:animate-pulse'
/>
<h4 className='text-xl font-bold text-gray-800 dark:text-white tracking-tight mb-0.5'>
{title}
</h4>
<p className='auth-card-subtitle text-gray-500 dark:text-gray-400 text-xs'>
{subtitle}
</p>
</div>
<h4 className='text-xl font-bold text-gray-800 dark:text-white tracking-tight mb-0.5'>
{title}
</h4>
<p className='auth-card-subtitle text-gray-500 dark:text-gray-400 text-xs'>
{subtitle}
</p>
</div>
);
);
};
export default AuthCardHeader;