fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
Binary file not shown.
@@ -17,6 +17,8 @@ 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 { I18N_TECHNICAL_TEXT } from '../../../i18n/technicalText.js';
|
||||
import { Download as ActionDownload } from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Banner, Button, Card, Tag, Tooltip } from '@/components/ui';
|
||||
@@ -47,9 +49,17 @@ export const ReportHeader = ({ report, onExport, t }) => {
|
||||
{t('企业经营决策报表')}
|
||||
</div>
|
||||
<div className='text-sm text-gray-700 dark:text-gray-200 tabular-nums'>
|
||||
{t('本期')}:{formatCst(m.start)} ~ {formatCst(m.effective_end)}
|
||||
<span className='mx-2 text-gray-300'>|</span>
|
||||
{t('对比期')}:{formatCst(m.prev_start)} ~ {formatCst(m.prev_end)}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='本期:{{value}} ~ {{value2}}<part0>|</part0>对比期:{{value3}} ~ {{value4}}'
|
||||
values={{
|
||||
value: formatCst(m.start),
|
||||
value2: formatCst(m.effective_end),
|
||||
value3: formatCst(m.prev_start),
|
||||
value4: formatCst(m.prev_end),
|
||||
}}
|
||||
components={{ part0: <span className='mx-2 text-gray-300' /> }}
|
||||
/>
|
||||
</div>
|
||||
<div className='text-xs text-gray-500 dark:text-gray-400 mt-1'>
|
||||
{t('数据截至 {{time}},按整点统计;对比期与本期按相同时长对齐', {
|
||||
@@ -281,7 +291,8 @@ export const KpiGrid = ({ report, lists, cny, onJump, t }) => {
|
||||
}}
|
||||
>
|
||||
{shareDelta >= 0 ? '+' : ''}
|
||||
{shareDelta.toFixed(1)}pp
|
||||
{shareDelta.toFixed(1)}
|
||||
{I18N_TECHNICAL_TEXT.PERCENTAGE_POINTS}
|
||||
</span>
|
||||
),
|
||||
tip: t('企业消耗 /(企业 + 个人消耗);pp 为百分点变化'),
|
||||
|
||||
Reference in New Issue
Block a user