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
@@ -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 { I18N_TECHNICAL_TEXT } from '../../../../i18n/technicalText.js';
import {
Wallet as ActionWallet,
RotateCcw as ActionRotateCcw,
@@ -716,9 +717,13 @@ const ImageGenerationForm = ({ creation }) => {
</Dropdown>
)}
<span className='flex items-center gap-1 text-[10px] text-gray-400'>
{IS_MAC ? <Command size={10} /> : <span>Ctrl</span>}
{IS_MAC ? (
<Command size={10} />
) : (
<span>{I18N_TECHNICAL_TEXT.CTRL}</span>
)}
<span>+</span>
<span>Enter</span>
<span>{I18N_TECHNICAL_TEXT.ENTER}</span>
<span>{t('生成')}</span>
</span>
</div>
@@ -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 { Trans } from 'react-i18next';
import {
Wallet as ActionWallet,
Play as ActionPlay,
@@ -377,10 +378,11 @@ const VideoPreviewPanel = ({
{t('使用提示')}
</div>
<div style={{ fontSize: '13px', lineHeight: '1.8' }}>
• {t('详细的提示词能获得更好的效果')}
<br />• {t('建议使用高质量的首帧图片')}
<br />• {t('视频生成可能需要 1-3 分钟')}
<br />• {t('可在任务队列中查看历史记录')}
<Trans
t={t}
i18nKey='• 详细的提示词能获得更好的效果<part0/>• 建议使用高质量的首帧图片<part1/>• 视频生成可能需要 1-3 分钟<part2/>• 可在任务队列中查看历史记录'
components={{ part0: <br />, part1: <br />, part2: <br /> }}
/>
</div>
</div>
}
@@ -533,19 +535,27 @@ const VideoPreviewPanel = ({
type='tertiary'
style={{ fontSize: windowWidth > 768 ? '12px' : '10px' }}
>
{t('模型')}:{' '}
{taskData.model ||
displayTask.properties?.upstream_model_name ||
displayTask.properties?.origin_model_name ||
(typeof selectedModel === 'object'
? selectedModel?.model_name
: selectedModel)}{' '}
| {t('时长')}:{' '}
{taskData.duration || displayTask.properties?.duration || '-'}
s | {t('分辨率')}:{' '}
{taskData.resolution ||
displayTask.properties?.resolution ||
'-'}
<Trans
t={t}
i18nKey='模型: {{value}} | 时长: {{value2}}s | 分辨率: {{value3}}'
values={{
value:
taskData.model ||
displayTask.properties?.upstream_model_name ||
displayTask.properties?.origin_model_name ||
(typeof selectedModel === 'object'
? selectedModel?.model_name
: selectedModel),
value2:
taskData.duration ||
displayTask.properties?.duration ||
'-',
value3:
taskData.resolution ||
displayTask.properties?.resolution ||
'-',
}}
/>
</Text>
</div>
</Space>
@@ -700,7 +710,7 @@ const VideoPreviewPanel = ({
</Title>
<img
src={formData.imagePreview || formData.image}
alt='Preview'
alt={t('预览')}
style={{
maxWidth: '100%',
maxHeight: windowWidth > 1024 ? '500px' : '350px',
@@ -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 { I18N_TECHNICAL_TEXT } from '../../../i18n/technicalText.js';
import {
ChevronRight as ActionChevronRight,
ChevronLeft as ActionChevronLeft,
@@ -201,7 +202,7 @@ const ExperienceSidebar = ({ unread }) => {
</span>
{item.beta && (
<span className='shrink-0 rounded-full border border-orange-300/70 bg-orange-50 px-1.5 py-0.5 font-mono text-[8px] font-bold tracking-wider text-orange-700'>
BETA
{I18N_TECHNICAL_TEXT.BETA}
</span>
)}
{unreadCount > 0 ? (