Skip to content

Commit

Permalink
fix: 优化i18n文案和温馨提示
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyin committed Dec 31, 2024
1 parent d68fdf0 commit 856b8b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export default {
"If you are seeing this, it is probably due to a routing interception issue on the front end of your browser. You can force a refresh to see it or use the link directly without affecting the use of this link.",
},
filePage: {
addFileTitle: "Add File",
importFileTitle: "Import Sub-Store file data",
addFileTitle: "Create File",
importFileTitle: "Import File data",
importFileTips: "On the File Management page, click the Export icon button in the More items section of a file.",
deleteFile: {
succeedNotify: "Successfully deleted!",
Expand Down Expand Up @@ -115,8 +115,10 @@ export default {
label: "Import",
succeed: "Successfully imported!",
failed: "Failed to import!\n{e}",
tipsTitle: "Import Subscription data",
tipsContent: "On the Subscription management page, click on the Export icon button on the left/right slide of a subscription with more items.",
},
addSubTitle: "Which type you want to create?",
addSubTitle: "Choose Subscription type",
previewTitle: "Copy/Preview a subscription",
tag: {
addTagTitle: "Add Tag",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export default {
label: '导入',
succeed: '导入成功',
failed: '导入失败\n{e}',
tipsTitle: '导入 Sub-Store 订阅数据',
tipsContent: '订阅管理页面, 在某个订阅左滑/右滑的更多项中, 点击导出图标按钮',
},
addSubTitle: '选择要创建的订阅类型',
previewTitle: '预览/拷贝订阅',
Expand Down
4 changes: 2 additions & 2 deletions src/views/Sub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ const fileChange = async (event) => {
const importTips = () => {
addSubBtnIsVisible.value = false
Dialog({
title: '导入 Sub-Store 订阅数据',
content: '订阅管理页面, 在某个订阅左滑/右滑的更多项中, 点击导出图标按钮',
title: t(`subPage.import.tipsTitle`),
content: t(`subPage.import.tipsContent`),
popClass: 'auto-dialog',
okText: 'OK',
noCancelBtn: true,
Expand Down

0 comments on commit 856b8b3

Please sign in to comment.