From dee9ddbcd9e2776a93cb18814093d9b538456420 Mon Sep 17 00:00:00 2001 From: Bayarbold8 Date: Mon, 8 Jan 2024 18:30:55 +0800 Subject: [PATCH 1/6] created translation file and keys for components and routes --- addon/components/api-event/data.hbs | 4 +- addon/components/api-event/details.hbs | 8 +- addon/components/api-request-log/details.hbs | 12 +- .../api-request-log/query-params.hbs | 4 +- .../api-request-log/request-body.hbs | 2 +- .../api-request-log/request-headers.hbs | 4 +- .../api-request-log/response-body.hbs | 4 +- addon/components/modals/api-key-form.hbs | 14 +-- .../modals/listen-custom-channel.hbs | 2 +- .../components/modals/rename-api-key-form.hbs | 2 +- addon/components/modals/roll-api-key-form.hbs | 20 ++-- addon/components/modals/webhook-form.hbs | 16 +-- addon/templates/api-keys/index.hbs | 14 +-- addon/templates/application.hbs | 14 +-- addon/templates/events/index.hbs | 2 +- addon/templates/events/view.hbs | 2 +- addon/templates/logs/index.hbs | 2 +- addon/templates/logs/view.hbs | 2 +- addon/templates/sockets/index.hbs | 4 +- addon/templates/sockets/view.hbs | 8 +- addon/templates/webhooks/index.hbs | 4 +- addon/templates/webhooks/view.hbs | 8 +- translations/en-us.yaml | 104 +++++++++++++++++- 23 files changed, 179 insertions(+), 77 deletions(-) diff --git a/addon/components/api-event/data.hbs b/addon/components/api-event/data.hbs index 85462d3..857e54a 100644 --- a/addon/components/api-event/data.hbs +++ b/addon/components/api-event/data.hbs @@ -1,10 +1,10 @@ - + {{#if @apiEvent.data}} {{else}}
- No event data + {{t "developers.components.api-event.data.no-data"}}
{{/if}} diff --git a/addon/components/api-event/details.hbs b/addon/components/api-event/details.hbs index 764b211..073cedf 100644 --- a/addon/components/api-event/details.hbs +++ b/addon/components/api-event/details.hbs @@ -1,9 +1,9 @@ - +
- Date + {{t "developers.common.date"}} {{@apiEvent.createdAt}} @@ -11,7 +11,7 @@
- Source + {{t "developers.common.source"}} {{@apiEvent.source}} @@ -19,7 +19,7 @@
- Description + {{t "developers.components.api-events.details.description"}} {{@apiEvent.description}} diff --git a/addon/components/api-request-log/details.hbs b/addon/components/api-request-log/details.hbs index b2750d5..a985c53 100644 --- a/addon/components/api-request-log/details.hbs +++ b/addon/components/api-request-log/details.hbs @@ -1,9 +1,9 @@ - +
- Time + {{t "developers.common.time"}} {{@apiRequest.createdAt}} @@ -11,7 +11,7 @@
- Duration + {{t "developers.components.api-request-log.details.duration"}} {{format-milliseconds @apiRequest.duration}} @@ -19,7 +19,7 @@
- IP Address + {{t "developers.components.api-request-log.details.ip-address"}} {{@apiRequest.ip_address}} @@ -27,7 +27,7 @@
- Version + {{t "developers.common.version"}} {{@apiRequest.version}} @@ -35,7 +35,7 @@
- Source + {{t "developers.common.source"}} {{@apiRequest.source}} diff --git a/addon/components/api-request-log/query-params.hbs b/addon/components/api-request-log/query-params.hbs index 838a361..bdc9548 100644 --- a/addon/components/api-request-log/query-params.hbs +++ b/addon/components/api-request-log/query-params.hbs @@ -1,10 +1,10 @@ - + {{#if @apiRequest.query_params}} {{else}}
- No query parameters + {{t "developers.components.api-request-log.query-params.no-parameters"}}
{{/if}} diff --git a/addon/components/api-request-log/request-body.hbs b/addon/components/api-request-log/request-body.hbs index fe58330..eb4ada1 100644 --- a/addon/components/api-request-log/request-body.hbs +++ b/addon/components/api-request-log/request-body.hbs @@ -4,7 +4,7 @@ {{else}}
- No request {{@apiRequest.method}} body + {{t "developers.components.api-request-log.request-body.no-request" htmlSafe=true method=@apiRequest.method}}
{{/if}} diff --git a/addon/components/api-request-log/request-headers.hbs b/addon/components/api-request-log/request-headers.hbs index 3d095c8..808e36c 100644 --- a/addon/components/api-request-log/request-headers.hbs +++ b/addon/components/api-request-log/request-headers.hbs @@ -1,10 +1,10 @@ - + {{#if @apiRequest.request_headers}} {{else}}
- No request HEADERS + {{t "developers.components.api-request-log.request-headers.no-headers"}}
{{/if}} diff --git a/addon/components/api-request-log/response-body.hbs b/addon/components/api-request-log/response-body.hbs index 498e06f..b2bfd76 100644 --- a/addon/components/api-request-log/response-body.hbs +++ b/addon/components/api-request-log/response-body.hbs @@ -1,10 +1,10 @@ - + {{#if @apiRequest.response_body}} {{else}}
- No response body + {{t "developers.components.api-request-log.response-body.no-response-body"}}
{{/if}} diff --git a/addon/components/modals/api-key-form.hbs b/addon/components/modals/api-key-form.hbs index 0b38957..bc22f71 100644 --- a/addon/components/modals/api-key-form.hbs +++ b/addon/components/modals/api-key-form.hbs @@ -2,7 +2,7 @@ @@ -33,17 +33,17 @@
{{#if @options.testMode}} - Test Key + {{t "developers.components.modals.api-key-form.test-key"}}

- You are creating a test environment key, use this for testing environments. + {{t "developers.components.modals.api-keys-form.testing-environments"}}

{{else}} - Live Key + {{t "developers.components.modals.api-keys-form.live-key"}}

- You are creating a live environment key, use this for production environments. + {{t "developers.components.modals.api-keys-form.production-environments"}}

{{/if}}
diff --git a/addon/components/modals/listen-custom-channel.hbs b/addon/components/modals/listen-custom-channel.hbs index 1708865..41ee442 100644 --- a/addon/components/modals/listen-custom-channel.hbs +++ b/addon/components/modals/listen-custom-channel.hbs @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/addon/components/modals/rename-api-key-form.hbs b/addon/components/modals/rename-api-key-form.hbs index 56df415..703c576 100644 --- a/addon/components/modals/rename-api-key-form.hbs +++ b/addon/components/modals/rename-api-key-form.hbs @@ -2,7 +2,7 @@ @@ -19,7 +19,7 @@
- Last used + {{t "developers.components.modals.roll-api-key-form.last-used"}}
@@ -32,13 +32,13 @@
- Expiration + {{t "developers.components.modals.roll-api-key-form.expiration"}}

- Once this key expires, you can't perform any actions with it. + {{t "developers.components.modals.roll-api-key-form.key-expires"}}

@@ -56,23 +56,23 @@
- Additional authentication required + {{t "developers.components.modals.roll-api-key-form.additional-required"}}

- To continue, please enter your password. + {{t "developers.components.modals.roll-api-key-form.enter-password."}}

diff --git a/addon/components/modals/webhook-form.hbs b/addon/components/modals/webhook-form.hbs index 6f7929e..ef76ec4 100644 --- a/addon/components/modals/webhook-form.hbs +++ b/addon/components/modals/webhook-form.hbs @@ -1,23 +1,23 @@
- +
- -