Skip to content

Commit 9a82eac

Browse files
committed
🌐 调整无数据的文案与WebDAV账号密码文案
1 parent d0e6ef0 commit 9a82eac

File tree

6 files changed

+223
-196
lines changed

6 files changed

+223
-196
lines changed

pkg/filesystem/factory.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import i18next from "i18next";
12
import BaiduFileSystem from "./baidu/baidu";
23
import FileSystem from "./filesystem";
34
import OneDriveFileSystem from "./onedrive/onedrive";
@@ -45,13 +46,13 @@ export default class FileSystemFactory {
4546
return {
4647
webdav: {
4748
authType: {
48-
title: "鉴权类型",
49+
title: i18next.t("auth_type"),
4950
type: "select",
5051
options: ["password", "digest", "none", "token"],
5152
},
52-
url: { title: "URL" },
53-
username: { title: "用户名" },
54-
password: { title: "密码" },
53+
url: { title: i18next.t("url") },
54+
username: { title: i18next.t("username") },
55+
password: { title: i18next.t("password") },
5556
},
5657
"baidu-netdsik": {},
5758
onedrive: {},

src/locales/en-US/translation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ script_gallery: Script Gallery
1212
community_forum: Community Forum
1313
external_links: External Links
1414
system_follow: Follow System
15+
no_data: No Data
1516

1617
# Sidebar layout/Sider
1718
installed_scripts: Scripts
@@ -335,3 +336,9 @@ cookie_domain: "Cookie Domain"
335336
script_operation_title: "Script is attempting to access script synchronization storage"
336337
script_operation_description: "Please confirm whether you allow the script to perform this operation. If allowed, the script will be able to access the storage space you have set up and create a directory app/${dir} within it."
337338
script_permission_content: "Script"
339+
340+
# FileSystem
341+
auth_type: Authentication Type
342+
url: URL
343+
username: Username
344+
password: Password

src/locales/zh-CN/translation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ script_gallery: 脚本站
1212
community_forum: 社区论坛
1313
external_links: 外部链接
1414
system_follow: 跟随系统
15+
no_data: 暂无数据
1516

1617
# 侧边栏 layout/Sider
1718
installed_scripts: 已安装脚本
@@ -335,3 +336,9 @@ cookie_domain: "Cookie域"
335336
script_operation_title: "脚本正在试图操作脚本同步储存空间"
336337
script_operation_description: "请您确认是否允许脚本进行此操作,允许后将允许脚本操作你设定的储存空间,脚本会在储存空间下创建一个app/${dir}的目录进行使用"
337338
script_permission_content: "脚本"
339+
340+
# 文件系统
341+
auth_type: 鉴权类型
342+
url: URL
343+
username: 用户名
344+
password: 密码

0 commit comments

Comments
 (0)