refactor(i18n): use JSON with flattened key and namespace (#30114)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2025-12-29 14:52:32 +08:00
committed by GitHub
parent 09be869f58
commit 6d0e36479b
2552 changed files with 111159 additions and 142972 deletions

View File

@ -82,7 +82,7 @@ const RAGToolRecommendations = ({
className="flex w-full items-center rounded-md px-3 pb-0.5 pt-1 text-left text-text-tertiary"
onClick={() => setIsCollapsed(prev => !prev)}
>
<span className="system-xs-medium text-text-tertiary">{t('pipeline.ragToolSuggestions.title')}</span>
<span className="system-xs-medium text-text-tertiary">{t('ragToolSuggestions.title', { ns: 'pipeline' })}</span>
<ArrowDownRoundFill className={`ml-1 h-4 w-4 text-text-tertiary transition-transform ${isCollapsed ? '-rotate-90' : 'rotate-0'}`} />
</button>
{!isCollapsed && (
@ -126,7 +126,7 @@ const RAGToolRecommendations = ({
<RiMoreLine className="size-4 text-text-tertiary" />
</div>
<div className="system-xs-regular text-text-tertiary">
{t('common.operation.more')}
{t('operation.more', { ns: 'common' })}
</div>
</div>
</>

View File

@ -46,7 +46,7 @@ const UninstalledItem = ({
className="system-xs-medium cursor-pointer pl-1.5 text-components-button-secondary-accent-text"
onClick={showInstallModal}
>
{t('plugin.installAction')}
{t('installAction', { ns: 'plugin' })}
</div>
{isShowInstallModal && (
<InstallFromMarketplace