diff --git a/web/src/keycloak-theme/login/envCarriedOverToKc.ts b/web/src/keycloak-theme/login/envCarriedOverToKc.ts index 5d5259b02..dfc59772c 100644 --- a/web/src/keycloak-theme/login/envCarriedOverToKc.ts +++ b/web/src/keycloak-theme/login/envCarriedOverToKc.ts @@ -107,9 +107,9 @@ const { HEADER_USECASE_DESCRIPTION, injectHEADER_USECASE_DESCRIPTIONInSearchPara export { HEADER_USECASE_DESCRIPTION }; -const { THERMS_OF_SERVICES, injectTHERMS_OF_SERVICESInSearchParams } = getTransferableEnv( +const { TERMS_OF_SERVICES, injectTERMS_OF_SERVICESInSearchParams } = getTransferableEnv( { - "name": "THERMS_OF_SERVICES" as const, + "name": "TERMS_OF_SERVICES" as const, "getSerializedValueFromEnv": () => getEnv().TERMS_OF_SERVICES, "validateAndParseOrGetDefault": ( valueStr @@ -149,7 +149,7 @@ const { THERMS_OF_SERVICES, injectTHERMS_OF_SERVICESInSearchParams } = getTransf languages.forEach(lang => assert( typeof tosUrlByLng[lang] === "string", - `therms of service malformed (${lang})` + `terms of service malformed (${lang})` ) ); } @@ -163,7 +163,7 @@ const { THERMS_OF_SERVICES, injectTHERMS_OF_SERVICESInSearchParams } = getTransf } ); -export { THERMS_OF_SERVICES }; +export { TERMS_OF_SERVICES }; export function injectTransferableEnvsInSearchParams(url: string): string { let newUrl = url; @@ -172,7 +172,7 @@ export function injectTransferableEnvsInSearchParams(url: string): string { injectTHEME_IDInSearchParams, injectHEADER_ORGANIZATIONInSearchParams, injectHEADER_USECASE_DESCRIPTIONInSearchParams, - injectTHERMS_OF_SERVICESInSearchParams, + injectTERMS_OF_SERVICESInSearchParams, injectPALETTE_OVERRIDEInSearchParams ]) { newUrl = inject(newUrl); diff --git a/web/src/keycloak-theme/login/pages/Terms.tsx b/web/src/keycloak-theme/login/pages/Terms.tsx index bbb9631b2..c51d74e26 100644 --- a/web/src/keycloak-theme/login/pages/Terms.tsx +++ b/web/src/keycloak-theme/login/pages/Terms.tsx @@ -6,7 +6,7 @@ import type { KcContext } from "../kcContext"; import type { I18n } from "../i18n"; import { useDownloadTerms } from "keycloakify/login"; import { createResolveLocalizedStringFactory } from "i18nifty/LocalizedString/LocalizedString"; -import { THERMS_OF_SERVICES } from "../envCarriedOverToKc"; +import { TERMS_OF_SERVICES } from "../envCarriedOverToKc"; import { tss, Button } from "ui/theme"; import { useConst } from "powerhooks/useConst"; import { id } from "tsafe/id"; @@ -110,7 +110,7 @@ const { createResolveLocalizedString } = createResolveLocalizedStringFactory({ export async function downloadTermMarkdown(params: { currentLanguageTag: string }) { const { currentLanguageTag } = params; - if (THERMS_OF_SERVICES === undefined) { + if (TERMS_OF_SERVICES === undefined) { return { "markdownString": "No terms provided", "lang": "en" }; } @@ -120,7 +120,7 @@ export async function downloadTermMarkdown(params: { currentLanguageTag: string "labelWhenMismatchingLanguage": true }); - const { text: tos_url, lang } = resolveLocalizedString(THERMS_OF_SERVICES); + const { text: tos_url, lang } = resolveLocalizedString(TERMS_OF_SERVICES); const markdownString = await fetch(tos_url).then(response => response.text()); diff --git a/web/src/ui/i18n/resources/en.tsx b/web/src/ui/i18n/resources/en.tsx index de4d36e85..35d399309 100644 --- a/web/src/ui/i18n/resources/en.tsx +++ b/web/src/ui/i18n/resources/en.tsx @@ -112,7 +112,7 @@ export const translations: Translations<"en"> = { "page title - my secrets": "My Secrets", "what this page is used for - my files": "Here you can browse your S3 Buckets.", "what this page is used for - my secrets": - "Here can be defined variables that will be accessible in you services under the form of environnement variable.", + "Here can be defined variables that will be accessible in your services under the form of environnement variables.", "help content": ({ accountTabLink, docHref }) => ( <> Read{" "} @@ -129,7 +129,7 @@ export const translations: Translations<"en"> = { "page title - my secrets": "My Secrets", "what this page is used for - my files": "Here you can browse your S3 Buckets.", "what this page is used for - my secrets": - "Here can be defined variables that will be accessible in you services under the form of environnement variable.", + "Here can be defined variables that will be accessible in your services under the form of environnement variables.", "learn more - my files": "To learn more about file management,", "help content": ({ accountTabLink, docHref }) => ( <>