refactor(front): update download and view options in FileShareHandle and TextShareHandle components to use new localization keys for improved flexibility

This commit is contained in:
keven1024
2025-12-20 09:05:59 +08:00
parent 9eaf06e7a8
commit 85c6b4582f
4 changed files with 14 additions and 30 deletions

View File

@@ -21,11 +21,11 @@ const props = defineProps<{
name="download_nums"
:label="t('fileshare.downloadNums')"
:options="[
{ label: t('fileshare.downloadOptions.1time'), value: 1 },
{ label: t('fileshare.downloadOptions.2times'), value: 2 },
{ label: t('fileshare.downloadOptions.3times'), value: 3 },
{ label: t('fileshare.downloadOptions.5times'), value: 5 },
{ label: t('fileshare.downloadOptions.10times'), value: 10 },
{ label: t('fileshare.downloadOptions.xdownload', 1), value: 1 },
{ label: t('fileshare.downloadOptions.xdownload', 2), value: 2 },
{ label: t('fileshare.downloadOptions.xdownload', 3), value: 3 },
{ label: t('fileshare.downloadOptions.xdownload', 5), value: 5 },
{ label: t('fileshare.downloadOptions.xdownload', 10), value: 10 },
]"
/>
{{ t('fileshare.or') }}

View File

@@ -21,11 +21,11 @@ const props = defineProps<{
name="download_nums"
:label="t('textshare.viewNums')"
:options="[
{ label: t('textshare.viewOptions.1time'), value: 1 },
{ label: t('textshare.viewOptions.2times'), value: 2 },
{ label: t('textshare.viewOptions.3times'), value: 3 },
{ label: t('textshare.viewOptions.5times'), value: 5 },
{ label: t('textshare.viewOptions.10times'), value: 10 },
{ label: t('textshare.viewOptions.xview', 1), value: 1 },
{ label: t('textshare.viewOptions.xview', 2), value: 2 },
{ label: t('textshare.viewOptions.xview', 3), value: 3 },
{ label: t('textshare.viewOptions.xview', 5), value: 5 },
{ label: t('textshare.viewOptions.xview', 10), value: 10 },
]"
/>
{{ t('textshare.or') }}

View File

@@ -46,11 +46,7 @@
"passwordPlaceholder": "Enter password",
"emailPlaceholder": "Enter email",
"downloadOptions": {
"1time": "1 download",
"2times": "2 downloads",
"3times": "3 downloads",
"5times": "5 downloads",
"10times": "10 downloads"
"xdownload": "{0} downloads"
},
"expireOptions": {
"5min": "5 minutes",
@@ -71,11 +67,7 @@
"passwordPlaceholder": "Enter password",
"emailPlaceholder": "Enter email",
"viewOptions": {
"1time": "1 view",
"2times": "2 views",
"3times": "3 views",
"5times": "5 views",
"10times": "10 views"
"xview": "{0} views"
},
"expireOptions": {
"5min": "5 minutes",

View File

@@ -46,11 +46,7 @@
"passwordPlaceholder": "请输入密码",
"emailPlaceholder": "请输入邮箱",
"downloadOptions": {
"1time": "1次下载",
"2times": "2次下载",
"3times": "3次下载",
"5times": "5次下载",
"10times": "10次下载"
"xdownload": "{0}次下载"
},
"expireOptions": {
"5min": "5分钟",
@@ -71,11 +67,7 @@
"passwordPlaceholder": "请输入密码",
"emailPlaceholder": "请输入邮箱",
"viewOptions": {
"1time": "1次浏览",
"2times": "2次浏览",
"3times": "3次浏览",
"5times": "5次浏览",
"10times": "10次浏览"
"xview": "{0}次浏览"
},
"expireOptions": {
"5min": "5分钟",