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

@ -263,7 +263,7 @@ const AllTools = ({
{hasToolsListContent && (
<>
<div className="px-3 pb-1 pt-2">
<span className="system-xs-medium text-text-primary">{t('tools.allTools')}</span>
<span className="system-xs-medium text-text-primary">{t('allTools', { ns: 'tools' })}</span>
</div>
<Tools
className={toolContentClassName}
@ -297,7 +297,7 @@ const AllTools = ({
<div className="flex h-full flex-col items-center justify-center gap-3 py-12 text-center">
<SearchMenu className="h-8 w-8 text-text-quaternary" />
<div className="text-sm font-medium text-text-secondary">
{t('workflow.tabs.noPluginsFound')}
{t('tabs.noPluginsFound', { ns: 'workflow' })}
</div>
<Link
href="https://github.com/langgenius/dify-plugins/issues/new?template=plugin_request.yaml"
@ -308,7 +308,7 @@ const AllTools = ({
variant="secondary-accent"
className="h-6 cursor-pointer px-3 text-xs"
>
{t('workflow.tabs.requestToCommunity')}
{t('tabs.requestToCommunity', { ns: 'workflow' })}
</Button>
</Link>
</div>
@ -320,7 +320,7 @@ const AllTools = ({
href={getMarketplaceUrl('', { category: PluginCategoryEnum.tool })}
target="_blank"
>
<span>{t('plugin.findMoreInMarketplace')}</span>
<span>{t('findMoreInMarketplace', { ns: 'plugin' })}</span>
<RiArrowRightUpLine className="ml-0.5 h-3 w-3" />
</Link>
)}