Skip to content

Commit

Permalink
Merge pull request #605 from qgau/main
Browse files Browse the repository at this point in the history
Small English typos fixed
  • Loading branch information
garronej authored Sep 28, 2023
2 parents 6975c03 + 1d1dcf1 commit aa5fe76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions web/src/keycloak-theme/login/envCarriedOverToKc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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})`
)
);
}
Expand All @@ -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;
Expand All @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions web/src/keycloak-theme/login/pages/Terms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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" };
}

Expand All @@ -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());

Expand Down
4 changes: 2 additions & 2 deletions web/src/ui/i18n/resources/en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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{" "}
Expand All @@ -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 }) => (
<>
Expand Down

0 comments on commit aa5fe76

Please sign in to comment.