fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -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 {
|
||||
Save as ActionSave,
|
||||
RefreshCw as ActionRefreshCw,
|
||||
@@ -538,11 +540,16 @@ export default function SettingsExperienceCenter({ options, refresh }) {
|
||||
outerBottomSlot={
|
||||
selectedModels.length > 0 && (
|
||||
<div className='px-3 py-2 border-t border-gray-100 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50 text-xs text-gray-500 dark:text-gray-400'>
|
||||
{t('已选择')}{' '}
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from'>
|
||||
{selectedModels.length}
|
||||
</span>{' '}
|
||||
{t('个模型')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='已选择 <part0>{{length}}</part0> 个模型'
|
||||
values={{ length: selectedModels.length }}
|
||||
components={{
|
||||
part0: (
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from' />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -584,11 +591,16 @@ export default function SettingsExperienceCenter({ options, refresh }) {
|
||||
outerBottomSlot={
|
||||
selectedVisionModels.length > 0 && (
|
||||
<div className='px-3 py-2 border-t border-gray-100 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50 text-xs text-gray-500 dark:text-gray-400'>
|
||||
{t('已选择')}{' '}
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from'>
|
||||
{selectedVisionModels.length}
|
||||
</span>{' '}
|
||||
{t('个模型')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='已选择 <part0>{{length}}</part0> 个模型'
|
||||
values={{ length: selectedVisionModels.length }}
|
||||
components={{
|
||||
part0: (
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from' />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -713,11 +725,16 @@ export default function SettingsExperienceCenter({ options, refresh }) {
|
||||
/>
|
||||
{selectedAllowedGroups.length > 0 && (
|
||||
<Text type='tertiary' size='small' className='block mt-1.5'>
|
||||
{t('已选择')}{' '}
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from'>
|
||||
{selectedAllowedGroups.length}
|
||||
</span>{' '}
|
||||
{t('个分组')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='已选择 <part0>{{length}}</part0> 个分组'
|
||||
values={{ length: selectedAllowedGroups.length }}
|
||||
components={{
|
||||
part0: (
|
||||
<span className='font-semibold text-brand-deep dark:text-brand-from' />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</Text>
|
||||
)}
|
||||
</div>
|
||||
@@ -796,7 +813,7 @@ export default function SettingsExperienceCenter({ options, refresh }) {
|
||||
rel='noreferrer'
|
||||
className='text-brand-deep dark:text-brand-from hover:underline ml-1'
|
||||
>
|
||||
api-dashboard.search.brave.com
|
||||
{I18N_TECHNICAL_TEXT.API_DASHBOARD_SEARCH_BRAVE_COM}
|
||||
</a>
|
||||
</Text>
|
||||
</div>
|
||||
@@ -827,7 +844,7 @@ export default function SettingsExperienceCenter({ options, refresh }) {
|
||||
rel='noreferrer'
|
||||
className='text-brand-deep dark:text-brand-from hover:underline ml-1'
|
||||
>
|
||||
open.bochaai.com
|
||||
{I18N_TECHNICAL_TEXT.OPEN_BOCHAAI_COM}
|
||||
</a>
|
||||
</Text>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user