= ({
? <>
- Drop your image here, or
-
+ {t('common.imageInput.dropImageHere')}
+
((e.target as HTMLInputElement).value = '')}
@@ -112,7 +114,7 @@ const ImageInput: FC = ({
onChange={handleLocalFileInput}
/>
- Supports PNG, JPG, JPEG, WEBP and GIF
+ {t('common.imageInput.supportedFormats')}
>
: handleShowImage()
}
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx
index 74991938a2..eb28e17655 100644
--- a/web/app/components/plugins/plugin-page/index.tsx
+++ b/web/app/components/plugins/plugin-page/index.tsx
@@ -56,6 +56,8 @@ 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 62e1d166ba..a0f2eebc8e 100644
--- a/web/i18n/en-US/common.ts
+++ b/web/i18n/en-US/common.ts
@@ -649,6 +649,11 @@ 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 bdfcfb3e72..fd1a8c2a05 100644
--- a/web/i18n/en-US/plugin.ts
+++ b/web/i18n/en-US/plugin.ts
@@ -1,4 +1,7 @@
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 7ece3acf54..ef865263bc 100644
--- a/web/i18n/zh-Hans/common.ts
+++ b/web/i18n/zh-Hans/common.ts
@@ -649,6 +649,11 @@ 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 dfd13c6bf0..94b81ef1d5 100644
--- a/web/i18n/zh-Hans/plugin.ts
+++ b/web/i18n/zh-Hans/plugin.ts
@@ -1,4 +1,7 @@
const translation = {
+ metadata: {
+ title: '插件',
+ },
category: {
all: '全部',
models: '模型',