mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
fix: marketplace i18n
This commit is contained in:
parent
324437b3f1
commit
d13169934d
@ -15,10 +15,10 @@ const Description = async ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1 className='shrink-0 mb-2 text-center title-4xl-semi-bold text-text-primary'>
|
<h1 className='shrink-0 mb-2 text-center title-4xl-semi-bold text-text-primary'>
|
||||||
Empower your AI development
|
{t('marketplace.empower')}
|
||||||
</h1>
|
</h1>
|
||||||
<h2 className='shrink-0 flex justify-center items-center text-center body-md-regular text-text-tertiary'>
|
<h2 className='shrink-0 flex justify-center items-center text-center body-md-regular text-text-tertiary'>
|
||||||
Discover
|
{t('marketplace.discover')}
|
||||||
<span className="relative ml-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('category.models')}
|
{t('category.models')}
|
||||||
</span>
|
</span>
|
||||||
@ -30,11 +30,11 @@ const Description = async ({
|
|||||||
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('category.extensions')}
|
{t('category.extensions')}
|
||||||
</span>
|
</span>
|
||||||
and
|
{t('marketplace.and')}
|
||||||
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('category.bundles')}
|
{t('category.bundles')}
|
||||||
</span>
|
</span>
|
||||||
in Dify Marketplace
|
{t('marketplace.inDifyMarketplace')}
|
||||||
</h2>
|
</h2>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -30,7 +30,7 @@ const PluginTypeSwitch = ({
|
|||||||
const options = [
|
const options = [
|
||||||
{
|
{
|
||||||
value: PLUGIN_TYPE_SEARCH_MAP.all,
|
value: PLUGIN_TYPE_SEARCH_MAP.all,
|
||||||
text: 'All',
|
text: t('plugin.category.all'),
|
||||||
icon: null,
|
icon: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -31,9 +31,11 @@ const Marketplace = ({
|
|||||||
onClick={() => onMarketplaceScroll()}
|
onClick={() => onMarketplaceScroll()}
|
||||||
/>
|
/>
|
||||||
<div className='sticky top-0 pt-5 pb-3 bg-background-default-subtle z-10'>
|
<div className='sticky top-0 pt-5 pb-3 bg-background-default-subtle z-10'>
|
||||||
<div className='title-2xl-semi-bold bg-gradient-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text text-transparent'>More from Marketplace</div>
|
<div className='title-2xl-semi-bold bg-gradient-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text text-transparent'>
|
||||||
|
{t('plugin.marketplace.moreFrom')}
|
||||||
|
</div>
|
||||||
<div className='flex items-center text-center body-md-regular text-text-tertiary'>
|
<div className='flex items-center text-center body-md-regular text-text-tertiary'>
|
||||||
Discover
|
{t('plugin.marketplace.discover')}
|
||||||
<span className="relative ml-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('plugin.category.models')}
|
{t('plugin.category.models')}
|
||||||
</span>
|
</span>
|
||||||
@ -45,11 +47,11 @@ const Marketplace = ({
|
|||||||
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('plugin.category.extensions')}
|
{t('plugin.category.extensions')}
|
||||||
</span>
|
</span>
|
||||||
and
|
{t('plugin.marketplace.and')}
|
||||||
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected">
|
||||||
{t('plugin.category.bundles')}
|
{t('plugin.category.bundles')}
|
||||||
</span>
|
</span>
|
||||||
in Dify Marketplace
|
{t('plugin.marketplace.inDifyMarketplace')}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
const translation = {
|
|
||||||
plugins: {
|
|
||||||
title: 'Plugins',
|
|
||||||
},
|
|
||||||
discover: {
|
|
||||||
title: 'Explore Marketplace',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export default translation
|
|
||||||
@ -1,5 +1,6 @@
|
|||||||
const translation = {
|
const translation = {
|
||||||
category: {
|
category: {
|
||||||
|
all: 'All',
|
||||||
models: 'models',
|
models: 'models',
|
||||||
tools: 'tools',
|
tools: 'tools',
|
||||||
extensions: 'extensions',
|
extensions: 'extensions',
|
||||||
@ -116,6 +117,13 @@ const translation = {
|
|||||||
error: {
|
error: {
|
||||||
inValidGitHubUrl: 'Invalid GitHub URL. Please enter a valid URL in the format: https://github.com/owner/repo',
|
inValidGitHubUrl: 'Invalid GitHub URL. Please enter a valid URL in the format: https://github.com/owner/repo',
|
||||||
},
|
},
|
||||||
|
marketplace: {
|
||||||
|
empower: 'Empower your AI development',
|
||||||
|
discover: 'Discover',
|
||||||
|
and: 'and',
|
||||||
|
inDifyMarketplace: 'in Dify Marketplace',
|
||||||
|
moreFrom: 'More from Marketplace',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default translation
|
export default translation
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
const translation = {
|
|
||||||
plugins: {
|
|
||||||
title: '插件',
|
|
||||||
},
|
|
||||||
discover: {
|
|
||||||
title: '探索市场',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export default translation
|
|
||||||
@ -1,5 +1,6 @@
|
|||||||
const translation = {
|
const translation = {
|
||||||
category: {
|
category: {
|
||||||
|
all: '全部',
|
||||||
models: '模型',
|
models: '模型',
|
||||||
tools: '工具',
|
tools: '工具',
|
||||||
extensions: '扩展',
|
extensions: '扩展',
|
||||||
@ -116,6 +117,13 @@ const translation = {
|
|||||||
error: {
|
error: {
|
||||||
inValidGitHubUrl: '无效的 GitHub URL。请输入格式为 https://github.com/owner/repo 的有效 URL',
|
inValidGitHubUrl: '无效的 GitHub URL。请输入格式为 https://github.com/owner/repo 的有效 URL',
|
||||||
},
|
},
|
||||||
|
marketplace: {
|
||||||
|
empower: '助力您的 AI 开发',
|
||||||
|
discover: '探索',
|
||||||
|
and: '和',
|
||||||
|
inDifyMarketplace: '在 Dify 市场中',
|
||||||
|
moreFrom: '更多来自市场',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default translation
|
export default translation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user