diff --git a/src/components/desktop/SnackBar.vue b/src/components/desktop/SnackBar.vue index c1bbb993..48300d7c 100644 --- a/src/components/desktop/SnackBar.vue +++ b/src/components/desktop/SnackBar.vue @@ -37,9 +37,9 @@ export default { } }, methods: { - showMessage(message) { + showMessage(message, options) { this.showState = true; - this.messageContent = this.$t(message); + this.messageContent = this.$t(message, options); }, showError(error) { this.showState = true; diff --git a/src/locales/en.json b/src/locales/en.json index 08361d24..ff1fd745 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -81,6 +81,7 @@ "youHaveAccounts": "You have recorded {count} accounts", "clickToSelectedFile": "Click to select import file ({extensions})", "selectedCount": "Selected {count} of {totalCount}", + "youHaveUpdatedTransactions": "You have updated {count} transactions", "confirmImportTransactions": "Are you sure you want to import {count} transactions?", "importTransactionResult": "You have imported {count} transactions successfully.", "accountActivationAndResendValidationEmailTip": "Account activation link has been sent to your email address: {email}, If you don't receive the mail, please fill password again and click the button below to resend the validation mail.", @@ -1508,6 +1509,19 @@ "No data to import": "No data to import", "Cannot import invalid transactions": "Cannot import invalid transactions", "Unable to parse import file": "Unable to parse import file", + "Batch Replace": "Batch Replace", + "Replace Invalid Expense Categories": "Replace Invalid Expense Categories", + "Replace Invalid Income Categories": "Replace Invalid Income Categories", + "Replace Invalid Transfer Categories": "Replace Invalid Transfer Categories", + "Replace Invalid Accounts": "Replace Invalid Accounts", + "Replace Invalid Transaction Tags": "Replace Invalid Transaction Tags", + "Invalid Category": "Invalid Category", + "Target Category": "Target Category", + "Invalid Account": "Invalid Account", + "Target Account": "Target Account", + "Invalid Tag": "Invalid Tag", + "Target Tag": "Target Tag", + "(Empty)": "(Empty)", "Tags": "Tags", "Your transaction description (optional)": "Your transaction description (optional)", "Transaction category cannot be blank": "Transaction category cannot be blank", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index 6796ed71..f2dfe90b 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -81,6 +81,7 @@ "youHaveAccounts": "您已经记录了 {count} 个账户", "clickToSelectedFile": "点击选择导入文件 ({extensions})", "selectedCount": "已选择 {count} / {totalCount}", + "youHaveUpdatedTransactions": "您已经更新 {count} 个交易", "confirmImportTransactions": "您确定要导入 {count} 个交易?", "importTransactionResult": "您已经成功导入 {count} 个交易。", "accountActivationAndResendValidationEmailTip": "账号激活链接已经发送到您的邮箱地址:{email},如果您没有收到邮件,请再次输入密码并点击下方的按钮重新发送验证邮件。", @@ -1508,6 +1509,19 @@ "No data to import": "没有可以导入的数据", "Cannot import invalid transactions": "不能导入无效的交易", "Unable to parse import file": "无法解析导入的文件", + "Batch Replace": "批量替换", + "Replace Invalid Expense Categories": "替换无效的支出分类", + "Replace Invalid Income Categories": "替换无效的收入分类", + "Replace Invalid Transfer Categories": "替换无效的转账分类", + "Replace Invalid Accounts": "替换无效的账户", + "Replace Invalid Transaction Tags": "替换无效的交易标签", + "Invalid Category": "无效分类", + "Target Category": "目标分类", + "Invalid Account": "无效账户", + "Target Account": "目标账户", + "Invalid Tag": "无效标签", + "Target Tag": "目标标签", + "(Empty)": "(空白)", "Tags": "标签", "Your transaction description (optional)": "你的交易描述 (可选)", "Transaction category cannot be blank": "交易分类不能为空", diff --git a/src/views/desktop/transactions/list/dialogs/ImportDialog.vue b/src/views/desktop/transactions/list/dialogs/ImportDialog.vue index 8cbd69fa..2dfbf6dd 100644 --- a/src/views/desktop/transactions/list/dialogs/ImportDialog.vue +++ b/src/views/desktop/transactions/list/dialogs/ImportDialog.vue @@ -7,6 +7,34 @@