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 { Trans } from 'react-i18next';
|
||||
import {
|
||||
Check as ActionCheck,
|
||||
Copy as ActionCopy,
|
||||
@@ -280,7 +281,11 @@ const AdminOrder = () => {
|
||||
if (displayName || username) {
|
||||
return displayName || username;
|
||||
}
|
||||
return <span className='text-gray-400'>User#{record.user_id}</span>;
|
||||
return (
|
||||
<span className='text-gray-400'>
|
||||
{t('用户 #{{id}}', { id: record.user_id })}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
},
|
||||
{ title: t('用户ID'), dataIndex: 'user_id', width: 70 },
|
||||
@@ -326,12 +331,17 @@ const AdminOrder = () => {
|
||||
{formatUSDMinor(record.provider_net_amount_minor)}
|
||||
</div>
|
||||
<div>
|
||||
{t('结算状态')}:{' '}
|
||||
{t(
|
||||
payPalSettlementStateMap[record.paypal_settlement_state] ||
|
||||
record.paypal_settlement_state ||
|
||||
'未知',
|
||||
)}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='结算状态: {{label}}'
|
||||
values={{
|
||||
label: t(
|
||||
payPalSettlementStateMap[record.paypal_settlement_state] ||
|
||||
record.paypal_settlement_state ||
|
||||
'未知',
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user