mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
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:
@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user