Skip to content

Commit 86a399f

Browse files
committed
locale: optimize translations
1 parent 86d8a43 commit 86a399f

6 files changed

Lines changed: 44 additions & 52 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Header Editor
1010
[![Discussions](https://img.shields.io/github/discussions/FirefoxBar/HeaderEditor?label=Discussions)](https://github.com/FirefoxBar/HeaderEditor/discussions)
1111
[![Build Status](https://github.com/FirefoxBar/HeaderEditor/actions/workflows/dev.yml/badge.svg)](https://github.com/FirefoxBar/HeaderEditor/actions/workflows/dev.yml)
1212

13-
An extension which can modify the request, include request headers, response headers, redirect requests, and cancel requests.
13+
An extension which can modify the request, include request headers, response headers, response body, redirect requests, and cancel requests.
1414

1515
It's 100% FREE, no ADs, no data collection.
1616

docs/docs/en-US/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pageType: home
44
hero:
55
name: Header Editor
66
text:
7-
tagline: Modify request headers, response headers, redirect requests, cancel requests
7+
tagline: Modify request headers, response headers, response body, redirect requests, cancel requests
88
actions:
99
- theme: brand
1010
text: Setup
@@ -14,7 +14,7 @@ hero:
1414
link: https://github.com/FirefoxBar/HeaderEditor
1515
features:
1616
- title: Modify requests
17-
details: Based on rules, modify request headers, response headers, and redirect
17+
details: Based on rules, modify request headers, response headers, response body, and redirect
1818
icon: 🚥
1919
- title: Custom function
2020
details: Use custom functions to achieve more flexible functionality

docs/docs/zh-CN/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pageType: home
44
hero:
55
name: Header Editor
66
text:
7-
tagline: 修改请求头和响应头、重定向请求、取消请求
7+
tagline: 修改请求头、响应头、响应体,重定向请求、取消请求
88
actions:
99
- theme: brand
1010
text: 开始使用
@@ -14,7 +14,7 @@ hero:
1414
link: https://github.com/FirefoxBar/HeaderEditor
1515
features:
1616
- title: 修改请求
17-
details: 基于规则,修改请求头、响应头,进行重定向
17+
details: 基于规则,修改请求头、响应头、响应体,进行重定向
1818
icon: 🚥
1919
- title: 自定义函数
2020
details: 通过自定义函数,更精确的控制请求

docs/docs/zh-TW/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pageType: home
44
hero:
55
name: Header Editor
66
text:
7-
tagline: 變更要求標頭和回應標頭,取消要求、重新導向的要求
7+
tagline: 變更要求標頭、回應標頭、回應主體,取消要求、重新導向的要求
88
actions:
99
- theme: brand
1010
text: 開始使用
@@ -14,7 +14,7 @@ hero:
1414
link: https://github.com/FirefoxBar/HeaderEditor
1515
features:
1616
- title: 修改请求
17-
details: 基于规则,修改请求头、响应头,进行重定向
17+
details: 基于规则,變更要求標頭、回應標頭、回應主體,重新導向的要求
1818
icon: 🚥
1919
- title: 自定义函数
2020
details: 通过自定义函数,更精确的控制请求

locale/original/messages.json

Lines changed: 36 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"description": "Auto detect dark mode"
1313
},
1414
"auto_enable_modify_body": {
15-
"message": "Modify body has been automatically turned on, please turn it off manually if you don't need it",
15+
"message": "Modify response body has been automatically enabled. Please disable it manually if not needed.",
1616
"description": "A message"
1717
},
1818
"basic_information": {
1919
"message": "Basic Information",
2020
"description": "Basic information of a rule"
2121
},
2222
"batch_delete": {
23-
"message": "batch deletion",
23+
"message": "Batch delete",
2424
"description": "Button to delete multiple rules"
2525
},
2626
"batch_mode": {
@@ -73,7 +73,7 @@
7373
"description": "Label for code section in modal"
7474
},
7575
"code_empty": {
76-
"message": "Code can not be empty",
76+
"message": "Code cannot be empty",
7777
"description": "Tips when a rule is custom function but code is empty"
7878
},
7979
"common_mark": {
@@ -93,15 +93,15 @@
9393
"description": "Dark mode select"
9494
},
9595
"dark_mode_help": {
96-
"message": "Dark mode is experimental, refresh this page to see the effect",
96+
"message": "Dark mode is experimental. Refresh the page to see the effect.",
9797
"description": "Dark help text"
9898
},
9999
"debug_mode_enable": {
100100
"message": "Enable debug mode",
101101
"description": "Enable debug mode"
102102
},
103103
"debug_mode_enable_help": {
104-
"message": "When debug mode is turned on, some logs will be printed in the background page",
104+
"message": "When debug mode is enabled, logs will be printed on the background page",
105105
"description": "Debug mode description"
106106
},
107107
"delete": {
@@ -113,27 +113,27 @@
113113
"description": "A confirmation box shows when user want to delete rules"
114114
},
115115
"description": {
116-
"message": "Manage browser's requests, include modify the request headers and response headers, redirect requests, cancel requests",
116+
"message": "Manage browser requests, including modifying request headers and response headers, response body, redirecting requests, and canceling requests.",
117117
"description": "Extension description"
118118
},
119119
"disable": {
120120
"message": "Disable",
121121
"description": "disable"
122122
},
123123
"display_common_header": {
124-
"message": "Display common header",
124+
"message": "Display common headers",
125125
"description": "An option to enable header auto-complete when editing rules"
126126
},
127127
"display_common_header_help": {
128-
"message": "When editing rules, display common request & response header names",
128+
"message": "Display common request and response header names when editing rules",
129129
"description": "Help text for display_common_header_help option"
130130
},
131131
"download": {
132132
"message": "Download",
133133
"description": "Download button"
134134
},
135135
"download_rule": {
136-
"message": "Download rule",
136+
"message": "Download rules",
137137
"description": "Title of the rule download area"
138138
},
139139
"edit": {
@@ -173,7 +173,7 @@
173173
"description": "Custom function in execute type"
174174
},
175175
"exec_normal": {
176-
"message": "normal",
176+
"message": "Normal",
177177
"description": "Normal option in execute type"
178178
},
179179
"exec_type": {
@@ -217,7 +217,7 @@
217217
"description": "Label for header value in modal"
218218
},
219219
"header_empty": {
220-
"message": "Header name can not be empty",
220+
"message": "Header name cannot be empty",
221221
"description": "Message for saving a rule without header name"
222222
},
223223
"help": {
@@ -237,7 +237,7 @@
237237
"description": "Add a new rule"
238238
},
239239
"import_override": {
240-
"message": "Overrides existing",
240+
"message": "Override existing",
241241
"description": "Overrides already existing rule"
242242
},
243243
"import_success": {
@@ -249,15 +249,15 @@
249249
"description": "An option to enable this feature"
250250
},
251251
"include_header_in_custom_function_help": {
252-
"message": "Pass the request header into the custom function that processes the response header, it may reduce some performance",
252+
"message": "Pass request headers to the custom function that processes response headers. This may reduce performance.",
253253
"description": "Help text for include_header_in_custom_function option"
254254
},
255255
"lite_edit_tip": {
256-
"message": "Some features are not supported in lite version",
256+
"message": "Some features are not supported in the lite version",
257257
"description": "Tip at the edit panel for lite version"
258258
},
259259
"lite_not_support": {
260-
"message": "The lite version does not support this feature",
260+
"message": "This feature is not supported in the lite version",
261261
"description": "Message at the not support features"
262262
},
263263
"manage": {
@@ -297,11 +297,11 @@
297297
"description": "Regular expression option in modal"
298298
},
299299
"match_resourceType": {
300-
"message": "Resource Type",
300+
"message": "Resource type",
301301
"description": "Request resource type"
302302
},
303303
"match_rule_empty": {
304-
"message": "Match rule can not be empty",
304+
"message": "Match rule cannot be empty",
305305
"description": "Message for saving a rule without match rule"
306306
},
307307
"match_url": {
@@ -313,19 +313,19 @@
313313
"description": "Option to enable/disable modify body"
314314
},
315315
"modify_body_help": {
316-
"message": "Allow modify response body, it may reduce some performance",
316+
"message": "Allow modification of response body. This may reduce performance.",
317317
"description": "Help text for modify_body option"
318318
},
319319
"name": {
320320
"message": "Name",
321321
"description": "Label for name in modal"
322322
},
323323
"name_empty": {
324-
"message": "Name can not be empty",
324+
"message": "Name cannot be empty",
325325
"description": "Message for saving a rule without name"
326326
},
327327
"no_update": {
328-
"message": "No update",
328+
"message": "No updates available",
329329
"description": "No update"
330330
},
331331
"ok": {
@@ -337,7 +337,7 @@
337337
"description": "Heading for options section on manage page."
338338
},
339339
"pack_up_or_unfurl": {
340-
"message": "Pack up or unfurl group",
340+
"message": "Collapse/expand group",
341341
"description": "Button to pack up or unfurl a group"
342342
},
343343
"quick_edit": {
@@ -353,7 +353,7 @@
353353
"description": "Label for redirect to in modal"
354354
},
355355
"redirect_empty": {
356-
"message": "Redirect target can not be empty",
356+
"message": "Redirect target cannot be empty",
357357
"description": "Message for saving a rule without redirect target if rule type is redirect"
358358
},
359359
"rename": {
@@ -369,7 +369,7 @@
369369
"description": "Request stage"
370370
},
371371
"resourceType_csp_report": {
372-
"message": "CSP Report (Given in the Content-Security-Policy header)",
372+
"message": "CSP Report (Specified in Content-Security-Policy header)",
373373
"description": "Resource type"
374374
},
375375
"resourceType_font": {
@@ -389,15 +389,15 @@
389389
"description": "Resource type"
390390
},
391391
"resourceType_object": {
392-
"message": "Object (Resources loaded by an <object> or <embed> element)",
392+
"message": "Object (Resources loaded by <object> or <embed> elements)",
393393
"description": "Resource type"
394394
},
395395
"resourceType_other": {
396396
"message": "Other",
397397
"description": "Resource type"
398398
},
399399
"resourceType_ping": {
400-
"message": "Ping (Given in a hyperlink's ping attribute)",
400+
"message": "Ping (Specified in hyperlink's ping attribute)",
401401
"description": "Resource type"
402402
},
403403
"resourceType_script": {
@@ -409,7 +409,7 @@
409409
"description": "Resource type"
410410
},
411411
"resourceType_sub_frame": {
412-
"message": "Sub frame (Documents loaded into an <iframe> or <frame> element)",
412+
"message": "Sub frame (Documents loaded in <iframe> or <frame> elements)",
413413
"description": "Resource type"
414414
},
415415
"resourceType_websocket": {
@@ -441,7 +441,7 @@
441441
"description": "If checked, rule history will automatically record to the switch list"
442442
},
443443
"rule_history_help": {
444-
"message": "If checked, rule history will automatically record to the switch list",
444+
"message": "Automatically record rule history to the switch list",
445445
"description": "Help text for rule_history option"
446446
},
447447
"rule_list": {
@@ -472,14 +472,6 @@
472472
"message": "Use the menu to switch rule content",
473473
"description": "Help text for rule_switch option"
474474
},
475-
"rules_no_effect_for_he": {
476-
"message": "Rules take no effect on Header Editor",
477-
"description": "If checked, all rules will take no effect on pages in Header Editor"
478-
},
479-
"rules_no_effect_for_he_help": {
480-
"message": "If checked, all rules will take no effect on pages in Header Editor",
481-
"description": "Help text for rules_no_effect_for_he option"
482-
},
483475
"save": {
484476
"message": "Save",
485477
"description": "Button to save a rule"
@@ -493,7 +485,7 @@
493485
"description": "Displays when rule saved successfully"
494486
},
495487
"select_all": {
496-
"message": "Select/Unselect all",
488+
"message": "Select/Deselect all",
497489
"description": "Button to select or unselect all rules in batch management mode"
498490
},
499491
"select_or_download": {
@@ -521,35 +513,35 @@
521513
"description": "Description text"
522514
},
523515
"switch_success": {
524-
"message": "Switch successfully",
516+
"message": "Switched successfully",
525517
"description": "Toast message when quick switch successfully"
526518
},
527519
"switch_title": {
528520
"message": "Quick switch",
529521
"description": "Title of the quick switch feature"
530522
},
531523
"test_custom_code": {
532-
"message": "Does not support testing custom code now",
524+
"message": "Custom code testing not supported",
533525
"description": "Label to test a redirect rule"
534526
},
535527
"test_exclude": {
536528
"message": "Matched but excluded",
537529
"description": "Label to test a redirect rule"
538530
},
539531
"test_invalid_regexp": {
540-
"message": "Regular expression is invalid",
532+
"message": "Invalid regular expression",
541533
"description": "Label to test a redirect rule"
542534
},
543535
"test_match": {
544536
"message": "Matched",
545537
"description": "Label to test a redirect rule"
546538
},
547539
"test_mismatch": {
548-
"message": "Mismatch",
540+
"message": "No match",
549541
"description": "Label to test a redirect rule"
550542
},
551543
"test_url": {
552-
"message": "Test (Won't be saved)",
544+
"message": "Test (Not saved)",
553545
"description": "Label to test a redirect rule"
554546
},
555547
"third_party_rules": {
@@ -561,11 +553,11 @@
561553
"description": "The default group name"
562554
},
563555
"update_available": {
564-
"message": "An update of the extension is available",
556+
"message": "Extension update available",
565557
"description": "An update of the extension is available"
566558
},
567559
"update_throttled": {
568-
"message": "Update is throttled",
560+
"message": "Update rate limit exceeded",
569561
"description": "Update is throttled"
570562
},
571563
"upload": {
@@ -588,4 +580,4 @@
588580
"message": "View",
589581
"description": "View rule or a link"
590582
}
591-
}
583+
}

src/pages/options/sections/rules/edit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const Edit = ({ visible, rule: ruleProp, onClose }: EditProps) => {
9292
if (rule.ruleType === RULE_TYPE.MODIFY_RECV_BODY) {
9393
if (!prefs.get('modify-body')) {
9494
prefs.set('modify-body', true);
95-
Toast.info(t('auto-enable-modify-body'));
95+
Toast.info(t('auto_enable_modify_body'));
9696
}
9797
}
9898

0 commit comments

Comments
 (0)