= ({
? <>
- {t('common.imageInput.dropImageHere')}
-
+ Drop your image here, or
+
((e.target as HTMLInputElement).value = '')}
@@ -114,7 +112,7 @@ const ImageInput: FC = ({
onChange={handleLocalFileInput}
/>
- {t('common.imageInput.supportedFormats')}
+ Supports PNG, JPG, JPEG, WEBP and GIF
>
: handleShowImage()
}
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx
index eb28e17655..74991938a2 100644
--- a/web/app/components/plugins/plugin-page/index.tsx
+++ b/web/app/components/plugins/plugin-page/index.tsx
@@ -56,8 +56,6 @@ const PluginPage = ({
const searchParams = useSearchParams()
const { replace } = useRouter()
- document.title = `${t('plugin.metadata.title')} - Dify`
-
// just support install one package now
const packageId = useMemo(() => {
const idStrings = searchParams.get(PACKAGE_IDS_KEY)
diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts
index fae4be5467..0d8b4158d9 100644
--- a/web/i18n/en-US/common.ts
+++ b/web/i18n/en-US/common.ts
@@ -652,11 +652,6 @@ const translation = {
pagination: {
perPage: 'Items per page',
},
- imageInput: {
- dropImageHere: 'Drop your image here, or',
- browse: 'browse',
- supportedFormats: 'Supports PNG, JPG, JPEG, WEBP and GIF',
- },
}
export default translation
diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts
index fd1a8c2a05..bdfcfb3e72 100644
--- a/web/i18n/en-US/plugin.ts
+++ b/web/i18n/en-US/plugin.ts
@@ -1,7 +1,4 @@
const translation = {
- metadata: {
- title: 'Plugins',
- },
category: {
all: 'All',
models: 'Models',
diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts
index 18933b0759..583a8c0e23 100644
--- a/web/i18n/zh-Hans/common.ts
+++ b/web/i18n/zh-Hans/common.ts
@@ -652,11 +652,6 @@ const translation = {
pagination: {
perPage: '每页显示',
},
- imageInput: {
- dropImageHere: '将图片拖放到此处,或',
- browse: '浏览',
- supportedFormats: '支持PNG、JPG、JPEG、WEBP和GIF格式',
- },
}
export default translation
diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts
index 94b81ef1d5..dfd13c6bf0 100644
--- a/web/i18n/zh-Hans/plugin.ts
+++ b/web/i18n/zh-Hans/plugin.ts
@@ -1,7 +1,4 @@
const translation = {
- metadata: {
- title: '插件',
- },
category: {
all: '全部',
models: '模型',