fix: update Dify text

This commit is contained in:
NFish 2025-03-14 19:09:51 +08:00
parent 00b923651f
commit fe237802c9
12 changed files with 29 additions and 24 deletions

View File

@ -6,7 +6,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
<div> <div>
### Authentication ### Authentication
Service API of Dify authenticates using an `API-Key`. Service API authenticates using an `API-Key`.
It is suggested that developers store the `API-Key` in the backend instead of sharing or storing it in the client side to avoid the leakage of the `API-Key`, which may lead to property loss. It is suggested that developers store the `API-Key` in the backend instead of sharing or storing it in the client side to avoid the leakage of the `API-Key`, which may lead to property loss.

View File

@ -5,9 +5,11 @@ import { useRouter } from 'next/navigation'
import Button from '../components/base/button' import Button from '../components/base/button'
import Avatar from './avatar' import Avatar from './avatar'
import LogoSite from '@/app/components/base/logo/logo-site' import LogoSite from '@/app/components/base/logo/logo-site'
import { useGlobalPublicStore } from '@/context/global-public-context'
const Header = () => { const Header = () => {
const { t } = useTranslation() const { t } = useTranslation()
const { systemFeatures } = useGlobalPublicStore()
const router = useRouter() const router = useRouter()
const back = () => { const back = () => {
@ -25,7 +27,7 @@ const Header = () => {
<div className='flex items-center flex-shrink-0 gap-3'> <div className='flex items-center flex-shrink-0 gap-3'>
<Button className='gap-2 py-2 px-3 system-sm-medium' onClick={back}> <Button className='gap-2 py-2 px-3 system-sm-medium' onClick={back}>
<RiRobot2Line className='w-4 h-4' /> <RiRobot2Line className='w-4 h-4' />
<p>{t('common.account.studio')}</p> <p>{!systemFeatures.branding.enabled && 'Dify '}{t('common.account.studio')}</p>
<RiArrowRightUpLine className='w-4 h-4' /> <RiArrowRightUpLine className='w-4 h-4' />
</Button> </Button>
<div className='w-[1px] h-4 bg-divider-regular' /> <div className='w-[1px] h-4 bg-divider-regular' />

View File

@ -1,6 +1,5 @@
import React from 'react' import React from 'react'
import type { ReactNode } from 'react' import type { ReactNode } from 'react'
import { t } from 'i18next'
import Header from './header' import Header from './header'
import SwrInitor from '@/app/components/swr-initor' import SwrInitor from '@/app/components/swr-initor'
import { AppContextProvider } from '@/context/app-context' import { AppContextProvider } from '@/context/app-context'
@ -33,9 +32,4 @@ const Layout = ({ children }: { children: ReactNode }) => {
</> </>
) )
} }
export const metadata = {
title: t('common.menus.account'),
}
export default Layout export default Layout

View File

@ -1,6 +1,11 @@
'use client'
import { useTranslation } from 'react-i18next'
import AccountPage from './account-page' import AccountPage from './account-page'
import useDocumentTitle from '@/hooks/use-document-title'
export default function Account() { export default function Account() {
const { t } = useTranslation()
useDocumentTitle(t('common.menus.account'))
return <div className='max-w-[640px] w-full mx-auto pt-12 px-6'> return <div className='max-w-[640px] w-full mx-auto pt-12 px-6'>
<AccountPage /> <AccountPage />
</div> </div>

View File

@ -132,6 +132,7 @@ const translation = {
explore: 'Explore', explore: 'Explore',
apps: 'Studio', apps: 'Studio',
appDetail: 'App Detail', appDetail: 'App Detail',
account: 'Account',
plugins: 'Plugins', plugins: 'Plugins',
pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.', pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.',
datasets: 'Knowledge', datasets: 'Knowledge',
@ -168,7 +169,7 @@ const translation = {
account: { account: {
account: 'Account', account: 'Account',
myAccount: 'My Account', myAccount: 'My Account',
studio: 'Dify Studio', studio: 'Studio',
avatar: 'Avatar', avatar: 'Avatar',
name: 'Name', name: 'Name',
email: 'Email', email: 'Email',
@ -180,8 +181,8 @@ const translation = {
newPassword: 'New password', newPassword: 'New password',
confirmPassword: 'Confirm password', confirmPassword: 'Confirm password',
notEqual: 'Two passwords are different.', notEqual: 'Two passwords are different.',
langGeniusAccount: 'Dify account', langGeniusAccount: 'Account\'s data',
langGeniusAccountTip: 'Your Dify account and associated user data.', langGeniusAccountTip: 'The user data of your account.',
editName: 'Edit Name', editName: 'Edit Name',
showAppLength: 'Show {{length}} apps', showAppLength: 'Show {{length}} apps',
delete: 'Delete Account', delete: 'Delete Account',

View File

@ -16,7 +16,7 @@ const translation = {
}, },
}, },
apps: { apps: {
title: 'Explore Apps by Dify', title: 'Explore Apps',
description: 'Use these template apps instantly or customize your own apps based on the templates.', description: 'Use these template apps instantly or customize your own apps based on the templates.',
allCategories: 'Recommended', allCategories: 'Recommended',
}, },

View File

@ -132,6 +132,7 @@ const translation = {
explore: '探索', explore: '探索',
apps: 'スタジオ', apps: 'スタジオ',
appDetail: 'アプリの詳細', appDetail: 'アプリの詳細',
account: 'アカウント',
plugins: 'プラグイン', plugins: 'プラグイン',
pluginsTips: 'サードパーティのプラグインを統合するか、ChatGPT互換のAIプラグインを作成します。', pluginsTips: 'サードパーティのプラグインを統合するか、ChatGPT互換のAIプラグインを作成します。',
datasets: 'ナレッジ', datasets: 'ナレッジ',
@ -177,8 +178,8 @@ const translation = {
newPassword: '新しいパスワード', newPassword: '新しいパスワード',
confirmPassword: 'パスワードを確認', confirmPassword: 'パスワードを確認',
notEqual: '2つのパスワードが異なります。', notEqual: '2つのパスワードが異なります。',
langGeniusAccount: 'Difyアカウント', langGeniusAccount: 'アカウント関連データ',
langGeniusAccountTip: 'Difyアカウントと関連するユーザーデータ。', langGeniusAccountTip: 'アカウントに関連するユーザーデータ。',
editName: '名前を編集', editName: '名前を編集',
showAppLength: '{{length}}アプリを表示', showAppLength: '{{length}}アプリを表示',
delete: 'アカウントを削除', delete: 'アカウントを削除',
@ -186,7 +187,7 @@ const translation = {
deleteConfirmTip: '確認のため、登録したメールから次の内容をに送信してください ', deleteConfirmTip: '確認のため、登録したメールから次の内容をに送信してください ',
account: 'アカウント', account: 'アカウント',
myAccount: 'マイアカウント', myAccount: 'マイアカウント',
studio: 'Difyスタジオ', studio: 'スタジオ',
deletePrivacyLinkTip: 'お客様のデータの取り扱い方法の詳細については、当社の', deletePrivacyLinkTip: 'お客様のデータの取り扱い方法の詳細については、当社の',
deletePrivacyLink: 'プライバシーポリシー。', deletePrivacyLink: 'プライバシーポリシー。',
deleteSuccessTip: 'アカウントの削除が完了するまでに時間が必要です。すべて完了しましたら、メールでお知らせします。', deleteSuccessTip: 'アカウントの削除が完了するまでに時間が必要です。すべて完了しましたら、メールでお知らせします。',

View File

@ -16,7 +16,7 @@ const translation = {
}, },
}, },
apps: { apps: {
title: 'Difyによるアプリの探索', title: 'アプリを探索',
description: 'これらのテンプレートアプリを即座に使用するか、テンプレートに基づいて独自のアプリをカスタマイズしてください。', description: 'これらのテンプレートアプリを即座に使用するか、テンプレートに基づいて独自のアプリをカスタマイズしてください。',
allCategories: '推奨', allCategories: '推奨',
}, },

View File

@ -132,6 +132,7 @@ const translation = {
explore: '探索', explore: '探索',
apps: '工作室', apps: '工作室',
appDetail: '应用详情', appDetail: '应用详情',
account: '账户',
plugins: '插件', plugins: '插件',
pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。', pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。',
datasets: '知识库', datasets: '知识库',
@ -168,7 +169,7 @@ const translation = {
account: { account: {
account: '账户', account: '账户',
myAccount: '我的账户', myAccount: '我的账户',
studio: 'Dify 工作室', studio: '工作室',
avatar: '头像', avatar: '头像',
name: '用户名', name: '用户名',
email: '邮箱', email: '邮箱',
@ -180,8 +181,8 @@ const translation = {
newPassword: '新密码', newPassword: '新密码',
notEqual: '两个密码不相同', notEqual: '两个密码不相同',
confirmPassword: '确认密码', confirmPassword: '确认密码',
langGeniusAccount: 'Dify 账号', langGeniusAccount: '账号关联数据',
langGeniusAccountTip: '您的 Dify 账号相关的用户数据。', langGeniusAccountTip: '您的账号相关的用户数据。',
editName: '编辑名字', editName: '编辑名字',
showAppLength: '显示 {{length}} 个应用', showAppLength: '显示 {{length}} 个应用',
delete: '删除账户', delete: '删除账户',

View File

@ -16,7 +16,7 @@ const translation = {
}, },
}, },
apps: { apps: {
title: '探索 Dify 的应用', title: '探索应用',
description: '使用这些模板应用程序,或根据模板自定义您自己的应用程序。', description: '使用这些模板应用程序,或根据模板自定义您自己的应用程序。',
allCategories: '推荐', allCategories: '推荐',
}, },

View File

@ -128,6 +128,7 @@ const translation = {
explore: '探索', explore: '探索',
apps: '工作室', apps: '工作室',
appDetail: '應用詳情', appDetail: '應用詳情',
account: '我的帳戶',
plugins: '外掛', plugins: '外掛',
pluginsTips: '整合第三方外掛或建立與 ChatGPT 相容的 AI 外掛。', pluginsTips: '整合第三方外掛或建立與 ChatGPT 相容的 AI 外掛。',
datasets: '知識庫', datasets: '知識庫',
@ -173,8 +174,8 @@ const translation = {
newPassword: '新密碼', newPassword: '新密碼',
notEqual: '兩個密碼不相同', notEqual: '兩個密碼不相同',
confirmPassword: '確認密碼', confirmPassword: '確認密碼',
langGeniusAccount: 'Dify 賬號', langGeniusAccount: '賬號数据',
langGeniusAccountTip: '您的 Dify 賬號和相關的使用者資料。', langGeniusAccountTip: '您的賬號和相關的使用者資料。',
editName: '編輯名字', editName: '編輯名字',
showAppLength: '顯示 {{length}} 個應用', showAppLength: '顯示 {{length}} 個應用',
delete: '刪除帳戶', delete: '刪除帳戶',
@ -182,7 +183,7 @@ const translation = {
deleteConfirmTip: '請將以下內容從您的註冊電子郵件發送至 ', deleteConfirmTip: '請將以下內容從您的註冊電子郵件發送至 ',
account: '帳戶', account: '帳戶',
myAccount: '我的帳戶', myAccount: '我的帳戶',
studio: 'Dify 工作室', studio: '工作室',
deletePrivacyLinkTip: '有關我們如何處理您的數據的更多資訊,請參閱我們的', deletePrivacyLinkTip: '有關我們如何處理您的數據的更多資訊,請參閱我們的',
deletePrivacyLink: '隱私策略。', deletePrivacyLink: '隱私策略。',
deleteSuccessTip: '您的帳戶需要時間才能完成刪除。完成後,我們會給您發送電子郵件。', deleteSuccessTip: '您的帳戶需要時間才能完成刪除。完成後,我們會給您發送電子郵件。',

View File

@ -16,7 +16,7 @@ const translation = {
}, },
}, },
apps: { apps: {
title: '探索 Dify 的應用', title: '探索應用',
description: '使用這些模板應用程式,或根據模板自定義您自己的應用程式。', description: '使用這些模板應用程式,或根據模板自定義您自己的應用程式。',
allCategories: '推薦', allCategories: '推薦',
}, },