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

补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent 936ece78ff
commit ac9bbfd472
146 changed files with 16591 additions and 11007 deletions
+29 -31
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 { Trans } from 'react-i18next';
import React, { useEffect, useState, useRef } from 'react';
import {
Button,
@@ -1636,20 +1637,24 @@ const SystemSetting = () => {
<Card>
<Form.Section text={t('配置 Linux DO OAuth')}>
<Text>
{t('用以支持通过 Linux DO 进行登录注册')}
<a
href='https://connect.linux.do/'
target='_blank'
rel='noreferrer'
style={{
display: 'inline-block',
marginLeft: 4,
marginRight: 4,
<Trans
t={t}
i18nKey='用以支持通过 Linux DO 进行登录注册<part0>点击此处</part0>管理你的 LinuxDO OAuth App'
components={{
part0: (
<a
href='https://connect.linux.do/'
target='_blank'
rel='noreferrer'
style={{
display: 'inline-block',
marginLeft: 4,
marginRight: 4,
}}
/>
),
}}
>
{t('点击此处')}
</a>
{t('管理你的 LinuxDO OAuth App')}
/>
</Text>
<Banner
type='info'
@@ -1732,13 +1737,10 @@ const SystemSetting = () => {
</Text>
<Banner
type='info'
description={
t(
'需要在微信开放平台创建网站应用并通过审核,回调地址配置为:',
) +
window.location.origin +
'/oauth/wechat-open'
}
description={t(
'需要在微信开放平台创建网站应用并通过审核,回调地址配置为:{{origin}}/oauth/wechat-open',
{ origin: window.location.origin },
)}
style={{ marginBlock: '16px' }}
/>
<Row
@@ -1775,17 +1777,13 @@ const SystemSetting = () => {
</Text>
<Banner
type='info'
description={
t(
'需要已认证的微信公众号,并在公众号后台「设置与开发 > 公众号设置 > 功能设置」中配置网页授权域名为:',
) +
window.location.hostname +
t(
'。如果公众号已绑定到微信开放平台,用户的 UnionID 将与扫码登录共享,确保同一用户身份。回调地址为:',
) +
window.location.origin +
'/oauth/wechat-mp'
}
description={t(
'需要已认证的微信公众号,并在公众号后台「设置与开发 > 公众号设置 > 功能设置」中配置网页授权域名为:{{hostname}}。如果公众号已绑定到微信开放平台,用户的 UnionID 将与扫码登录共享,确保同一用户身份。回调地址为:{{origin}}/oauth/wechat-mp',
{
hostname: window.location.hostname,
origin: window.location.origin,
},
)}
style={{ marginBlock: '16px' }}
/>
<Row