Explorar el Código

[web] Conditionally render copies of login/register pages (Pug) depending of a `uniaccessphase1` split-test (#29390)

* Conditionally render a CIAM copy of login.pug depending on `ciam` split-test

* Conditionally render a CIAM copy of register.pug depending on `ciam` split-test

* Conditionally render a CIAM copy of institutional_login.pug depending on `ciam` split-test

* Rename the test to `uniaccessphase1`

* Fixup ciam paths (underscores, not hyphens)

* Escape translations in `log_in_with_existing_institution_email`

See https://github.com/overleaf/internal/pull/29390#discussion_r2479318609

GitOrigin-RevId: fff0e154d1e1faad4842a2c49fa5889f9cc189e6
Antoine Clausse hace 9 meses
padre
commit
4d1e316bea

+ 1 - 1
services/web/locales/da.json

@@ -1016,7 +1016,7 @@
   "log_in_with": "Log ind med __provider__",
   "log_in_with_a_different_account": "Log ind med en anden konto",
   "log_in_with_email": "Log ind med __email__",
-  "log_in_with_existing_institution_email": "For at forbinde din <b>__appName__</b>- og din <b>__institutionName__</b>-konto, er du nødt til først at logge ind med din eksisterende <b>__appName__</b>-konto.",
+  "log_in_with_existing_institution_email": "For at forbinde din <0>__appName__</0>- og din <0>__institutionName__</0>-konto, er du nødt til først at logge ind med din eksisterende <0>__appName__</0>-konto.",
   "log_in_with_primary_email_address": "Dette bliver e-mailaddressen du skal bruge hvis du logger ind med e-mailaddresse og kode. Vigtige __appName__ beskeder vil blive sendt til denne adresse.",
   "log_in_with_sso": "Log ind med SSO",
   "log_in_with_sso_email": "Arbejde- eller universitets-e-mailaddresse",

+ 1 - 1
services/web/locales/de.json

@@ -744,7 +744,7 @@
   "log_in_first_to_proceed": "Du musst dich zuerst <b>anmelden</b>, um fortzufahren.",
   "log_in_with": "Einloggen mit __provider__",
   "log_in_with_email": "Melde dich mit __email__ an",
-  "log_in_with_existing_institution_email": "Bitte melde dich mit deinem bestehenden <b>__appName__</b>-Konto an, um deine institutionellen Konten <b>__appName__</b> und <b>__institutionName__</b> zu verknüpfen.",
+  "log_in_with_existing_institution_email": "Bitte melde dich mit deinem bestehenden <0>__appName__</0>-Konto an, um deine institutionellen Konten <0>__appName__</0> und <0>__institutionName__</0> zu verknüpfen.",
   "log_out": "Abmelden",
   "log_out_from": "Von __email__ abmelden",
   "log_viewer_error": "Beim Anzeigen der Kompilierfehler und -protokolle dieses Projekts ist ein Problem aufgetreten.",

+ 1 - 1
services/web/locales/en.json

@@ -1305,7 +1305,7 @@
   "log_in_with": "Log in with __provider__",
   "log_in_with_a_different_account": "Log in with a different account",
   "log_in_with_email": "Log in with __email__",
-  "log_in_with_existing_institution_email": "Please log in with your existing <b>__appName__</b> account in order to get your <b>__appName__</b>  and <b>__institutionName__</b> institutional accounts linked.",
+  "log_in_with_existing_institution_email": "Please log in with your existing <0>__appName__</0> account in order to get your <0>__appName__</0>  and <0>__institutionName__</0> institutional accounts linked.",
   "log_in_with_primary_email_address": "This will be the email address to use if you log in with an email address and password. Important __appName__ notifications will be sent to this email address.",
   "log_in_with_sso": "Log in with SSO",
   "log_in_with_sso_email": "Work or university email address",

+ 1 - 1
services/web/locales/fr.json

@@ -688,7 +688,7 @@
   "log_in_first_to_proceed": "Vous aurez besoin de <b>vous connecter</b> avant de poursuivre.",
   "log_in_with": "Se connecter avec __provider__",
   "log_in_with_email": "Se connecter avec __email__",
-  "log_in_with_existing_institution_email": "Veuillez vous connecter sur votre compte <b>__appName__</b> existant afin de lier vos comptes institutionnels <b>__appName__</b>  et <b>__institutionName__</b>.",
+  "log_in_with_existing_institution_email": "Veuillez vous connecter sur votre compte <0>__appName__</0> existant afin de lier vos comptes institutionnels <0>__appName__</0>  et <0>__institutionName__</0>.",
   "log_out": "Déconnexion",
   "log_out_from": "Se déconnecter de __email__",
   "logged_in_with_email": "Vous êtes actuellement connecté à <b>__appName__</b> avec l’adresse <b>__email__</b>.",

+ 1 - 1
services/web/locales/sv.json

@@ -451,7 +451,7 @@
   "log_in_first_to_proceed": "Du måste först <b>logga in</b> för att fortsätta.",
   "log_in_with": "Logga in med __provider__",
   "log_in_with_email": "Logga in med __email__",
-  "log_in_with_existing_institution_email": "Vänligen logga in med ditt befintliga <b>__appName__</b>-konto för att länka kontot <b>__appName__</b> och det institutionella kontot <b>__institutionName__ </b>.",
+  "log_in_with_existing_institution_email": "Vänligen logga in med ditt befintliga <0>__appName__</0>-konto för att länka kontot <0>__appName__</0> och det institutionella kontot <0>__institutionName__ </0>.",
   "log_out": "Logga ut",
   "log_out_from": "Logga ut från __email__",
   "logged_in_with_email": "Du är för närvarande inloggad i <b>__appName__</b> med e-postadressen <b>__email__</b>.",

+ 1 - 1
services/web/locales/zh-CN.json

@@ -1214,7 +1214,7 @@
   "log_in_with": "用 __provider__ 账户登陆",
   "log_in_with_a_different_account": "以另外一个账户登录",
   "log_in_with_email": "使用 __email__ 登录",
-  "log_in_with_existing_institution_email": "请使用您现有的 <b>__appName__</b> 帐户登录,以便将您的<b>__appName__</b>和<b>__institutionName__</b> 机构帐户关联起来。",
+  "log_in_with_existing_institution_email": "请使用您现有的 <0>__appName__</0> 帐户登录,以便将您的<0>__appName__</0>和<0>__institutionName__</0> 机构帐户关联起来。",
   "log_in_with_primary_email_address": "如果您使用电子邮件地址和密码登录,这将是要使用的电子邮件地址。 重要的 __appName__ 通知将发送到此电子邮件地址。",
   "log_in_with_sso": "通过 SSO 登录",
   "log_in_with_sso_email": "工作或大学电子邮件账户",