From 9a6451a601df4a4d53f08042e7429faa6494e9fe Mon Sep 17 00:00:00 2001 From: nivedin Date: Thu, 14 Dec 2023 20:48:08 +0530 Subject: [PATCH] chore: update i18n strings --- packages/hoppscotch-common/locales/en.json | 2 ++ .../src/components/http/Authorization.vue | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index aa34c3f4b..e20c0744d 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -139,9 +139,11 @@ "generate_token": "Generate Token", "graphql_headers": "Authorization Headers are sent as part of the payload to connection_init", "include_in_url": "Include in URL", + "inherited_from": "Inherited from {auth} from Parent Collection {collection} ", "learn": "Learn how", "pass_key_by": "Pass by", "password": "Password", + "save_to_inherit": "Please save this request in any collection to inherit the authorization", "token": "Token", "type": "Authorization Type", "username": "Username", diff --git a/packages/hoppscotch-common/src/components/http/Authorization.vue b/packages/hoppscotch-common/src/components/http/Authorization.vue index 684a1aec0..8dcff55da 100644 --- a/packages/hoppscotch-common/src/components/http/Authorization.vue +++ b/packages/hoppscotch-common/src/components/http/Authorization.vue @@ -154,13 +154,17 @@
- Inherited - {{ getAuthName(inheritedProperties.auth.inheritedAuth.authType) }} - from Parent Collection {{ inheritedProperties?.auth.parentName }} + {{ + t("authorization.inherited_from", { + auth: getAuthName( + inheritedProperties.auth.inheritedAuth.authType + ), + collection: inheritedProperties?.auth.parentName, + }) + }} - Please save this request in any collection to inherit the - authorization + {{ t("authorization.save_to_inherit") }}