Skip to content

Commit

Permalink
Hardcode a non-functioning language picker
Browse files Browse the repository at this point in the history
This is never accessible as it's behind a feature flag, and doesn't work either.

Refs #2044
  • Loading branch information
thewilkybarkid committed Oct 25, 2024
1 parent 3ad0378 commit 224eb36
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function page({
js = [],
user,
userOnboarding,
}: Page): R.Reader<EnvironmentLabelEnv & FathomEnv & PublicUrlEnv, Html> {
}: Page): R.Reader<EnvironmentLabelEnv & FathomEnv & PublicUrlEnv & { canChooseLocale?: boolean }, Html> {
const scripts = pipe(
js,
RA.uniq(stringEq()),
Expand All @@ -98,7 +98,7 @@ export function page({
)

return R.asks(
({ fathomId, environmentLabel, publicUrl }) => html`
({ canChooseLocale, fathomId, environmentLabel, publicUrl }) => html`
<!doctype html>
<html lang="${locale}" dir="${rtlDetect.getLangDir(locale)}" prefix="og: https://ogp.me/ns#">
<head>
Expand Down Expand Up @@ -307,6 +307,18 @@ export function page({
<img src="${assets['prereview.svg']}" width="570" height="147" alt="PREreview" />
</div>
${canChooseLocale === true
? html`
<div>
<p>Choose your language:</p>
<ul>
<li><a href="#">English</a></li>
</ul>
</div>
`
: ''}
<div>
${translate(locale, 'footer', 'newsletterText')()}
<a href="https://prereview.civicrm.org/civicrm/mailing/url?u=17&qid=30" class="forward"
Expand Down

0 comments on commit 224eb36

Please sign in to comment.