From 29a78a42c7375177bef7f2c2db59672dbb069680 Mon Sep 17 00:00:00 2001 From: q4speed Date: Sat, 9 May 2020 16:03:30 +0800 Subject: [PATCH] =?UTF-8?q?API=E7=BF=BB=E8=AF=91=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/i18n/en-US.js | 80 +++++++++++++++++++++++++++++++++++--- frontend/src/i18n/zh-CN.js | 2 +- 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 9a0e2cfc56..b3854758e7 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -94,7 +94,7 @@ export default { 'special_characters_are_not_supported': 'Special characters are not supported', 'mobile_number_format_is_incorrect': 'Mobile number format is incorrect', 'email_format_is_incorrect': 'Email format is incorrect', - 'password_format_is_incorrect':'Password format is incorrect (At least 8-16 characters, at least 1 uppercase letter, 1 lowercase letter and 1 number)', + 'password_format_is_incorrect': 'Password format is incorrect (At least 8-16 characters, at least 1 uppercase letter, 1 lowercase letter and 1 number)', }, user: { 'create': 'Create', @@ -102,7 +102,7 @@ export default { 'input_name': 'Please enter a user name', 'input_id': 'Please enter a ID', 'input_email': 'Please enter a email', - 'input_password':'Please enter a password', + 'input_password': 'Please enter a password', 'special_characters_are_not_supported': 'Special characters are not supported', 'mobile_number_format_is_incorrect': 'Mobile number format is incorrect', 'email_format_is_incorrect': 'Email format is incorrect', @@ -131,8 +131,8 @@ export default { 'being_generated': 'Report is being generated...', }, load_test: { - 'operating':'Operating', - 'pressure_prediction_chart':'Pressure Prediction Chart', + 'operating': 'Operating', + 'pressure_prediction_chart': 'Pressure Prediction Chart', 'recent': 'Recent Tests', 'search_by_name': 'Search by name', 'project_name': 'Project', @@ -188,7 +188,77 @@ export default { 'download_log_file': 'Download', }, api_test: { - 'select_resource_pool': 'Please select resource pool' + save_and_run: "Save and Run", + run: "Run", + running: "Running", + reset: "Rest", + input_name: "Please enter the test name", + select_project: "Please select project", + scenario: { + config: "Scenario Config", + input_name: "Please enter the scenario name", + name: "Scenario Name", + base_url: "Base URL", + base_url_description: "Base URL as URL prefix for all requests", + parameters: "arguments", + headers: "Headers", + kv_description: "Will be used for requests where the item is not set", + }, + request: { + input_name: "Please enter the request name", + name: "Request Name", + method: "Method", + url: "url", + url_description: "etc: https://fit2cloud.com", + parameters: "arguments", + parameters_desc: "Parameters will be appended to the URL e.g. https://fit2cloud.com?Name=Value&Name2=Value2", + headers: "Headers", + body: "Body", + body_kv: "Key Value", + body_text: "Raw", + assertions: { + label: "Assertion", + text: "Text", + regex: "Regex", + response_time: "Response Time", + select_type: "Please select a request type", + select_subject: "Please select a request subject", + select_condition: "Please select a condition", + contains: "Contains", + not_contains: "Not contains", + equals: "Equals", + start_with: "Start with", + end_with: "End With", + value: "Value", + expression: "Expression", + response_in_time: "Response in time", + }, + extract: "Extract from response", + } + }, + api_report: { + request: "Request", + request_body: "Body", + request_headers: "Headers", + request_cookie: "Cookie", + response: "Response", + delete_confirm: 'Confirm delete : ', + scenario_name: "Scenario name", + response_time: "Response time(ms)", + latency: "Latency", + request_size: "Request Size", + response_size: "Response Size", + response_code: "Response Code", + response_message: "Response Message", + error: "Error", + assertions: "Assertions", + assertions_pass: "Passed Assertions", + assertions_name: "Assertion Name", + assertions_message: "Assertion Message", + assertions_is_success: "Fail/Success", + result: "Result", + success: "Success", + fail: "Fail", }, test_track: { test_track: "Test Track", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 84cc1f4c3f..5a33026a3c 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -226,7 +226,7 @@ export default { response_time: "响应时间", select_type: "请选择类型", select_subject: "请选择对象", - select_contains: "请选择条件", + select_condition: "请选择条件", contains: "包含", not_contains: "不包含", equals: "等于",