fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -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 {
|
||||
ZoomOut as ActionZoomOut,
|
||||
ZoomIn as ActionZoomIn,
|
||||
@@ -28,6 +29,8 @@ import React, { useState, useCallback, useEffect } from 'react';
|
||||
import { Modal } from '@/components/ui';
|
||||
|
||||
const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [scale, setScale] = useState(1);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -122,7 +125,7 @@ const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
title='Reset'
|
||||
title={t('重置')}
|
||||
>
|
||||
<ActionRotateCw size={16} />
|
||||
</button>
|
||||
@@ -160,7 +163,7 @@ const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
>
|
||||
<img
|
||||
src={imageUrl}
|
||||
alt='preview'
|
||||
alt={t('预览')}
|
||||
style={{
|
||||
transform: `scale(${scale})`,
|
||||
transition: 'transform 0.2s ease',
|
||||
|
||||
Reference in New Issue
Block a user