Skip to content

Commit

Permalink
chore: update locale
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Jul 3, 2024
1 parent d55decc commit 5e388a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion locale/original/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,22 @@
"message": "Rules take no effect on Header Editor",
"description": "If checked, all rules will take no effect on pages in Header Editor"
},
"rule-switch": {
"message": "Enable rule quick switching",
"description": "Switch rule content with a menu"
},
"rule-history": {
"message": "Automatically record rule history",
"description": "If checked, rule history will automatically record to the switch list"
},
"quick-edit": {
"message": "Quick edit (on popup panel)",
"description": "Display edit button on the popup panel"
},
"auto-enable-modify-body": {
"message": "Modify body has been automatically turned on, please turn it off manually if you don't need it",
"description": "A message"
},
"save": {
"message": "Save",
"description": "Button to save a rule"
Expand Down Expand Up @@ -408,4 +424,4 @@
"message": "View",
"description": "View rule or a link"
}
}
}
2 changes: 1 addition & 1 deletion src/pages/options/sections/rules/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default class Edit extends React.Component<EditProps, EditState> {
if (rule.ruleType === RULE_TYPE.MODIFY_RECV_BODY) {
if (!prefs.get('modify-body')) {
prefs.set('modify-body', true);
Toast.info('已自动开启选项 - 修改响应体,若不需要请手动关闭');
Toast.info(t('auto-enable-modify-body'));
}
}

Expand Down

0 comments on commit 5e388a7

Please sign in to comment.