- Change "Sign up via email" to "Create super admin account"

- Make Terms of Service and Privacy Policy text a single translatable sentence
- Add translation keys for Name and Surname fields
This commit is contained in:
mohadeseh safari committed 2025-04-27 13:50:40 -04:00
1 parent b8c334d22a
commit fa0f4dd6ec
5 files changed
+51 -43

No files matched your search

+37 -35
View File
@@ -15,7 +15,7 @@ import Background from "../../../assets/Images/background-grid.svg?react";
import Logo from "../../../assets/icons/checkmate-icon.svg?react"; import Logo from "../../../assets/icons/checkmate-icon.svg?react";
import Mail from "../../../assets/icons/mail.svg?react"; import Mail from "../../../assets/icons/mail.svg?react";
import "../index.css"; import "../index.css";
import { useTranslation } from "react-i18next"; import { useTranslation, Trans } from "react-i18next";
/** /**
* Displays the initial landing page. * Displays the initial landing page.
* *
@@ -67,42 +67,44 @@ const LandingPage = ({ isSuperAdmin, onSignup }) => {
</Box> </Box>
<Box maxWidth={400}> <Box maxWidth={400}>
<Typography className="tos-p"> <Typography className="tos-p">
{t("authRegisterBySigningUp")}{" "} <Trans i18nKey="authRegisterBySigningUp">
<Typography By creating an account, you agree to our
component="span" <Typography
onClick={() => { component="span"
window.open( onClick={() => {
"https://bluewavelabs.ca/terms-of-service-open-source", window.open(
"_blank", "https://bluewavelabs.ca/terms-of-service-open-source",
"noreferrer" "_blank",
); "noreferrer"
}} );
sx={{ }}
"&:hover": { sx={{
"&:hover": {
color: theme.palette.primary.contrastTextTertiary, color: theme.palette.primary.contrastTextTertiary,
}, },
}} }}
> >
{t("authRegisterTerms")} Terms of Service
</Typography>{" "} </Typography>
{t("and")}{" "} and
<Typography <Typography
component="span" component="span"
onClick={() => { onClick={() => {
window.open( window.open(
"https://bluewavelabs.ca/privacy-policy-open-source", "https://bluewavelabs.ca/privacy-policy-open-source",
"_blank", "_blank",
"noreferrer" "noreferrer"
); );
}} }}
sx={{ sx={{
"&:hover": { "&:hover": {
color: theme.palette.primary.contrastTextTertiary, color: theme.palette.primary.contrastTextTertiary,
}, },
}} }}
> >
{t("authRegisterPrivacy")} Privacy Policy
</Typography> </Typography>
</Trans>
</Typography> </Typography>
</Box> </Box>
</Stack> </Stack>
@@ -64,7 +64,7 @@ function StepOne({ form, errors, onSubmit, onChange, onBack }) {
> >
<TextInput <TextInput
id="register-firstname-input" id="register-firstname-input"
label="Name" label={t("authRegisterFirstName")}
isRequired={true} isRequired={true}
placeholder="Jordan" placeholder="Jordan"
autoComplete="given-name" autoComplete="given-name"
@@ -76,7 +76,7 @@ function StepOne({ form, errors, onSubmit, onChange, onBack }) {
/> />
<TextInput <TextInput
id="register-lastname-input" id="register-lastname-input"
label="Surname" label={t("authRegisterLastName")}
isRequired={true} isRequired={true}
placeholder="Ellis" placeholder="Ellis"
autoComplete="family-name" autoComplete="family-name"
+4 -2
View File
@@ -54,8 +54,10 @@
"authPasswordMustMatch": "must match", "authPasswordMustMatch": "must match",
"authRegisterCreateAccount": "Create your account to get started", "authRegisterCreateAccount": "Create your account to get started",
"authRegisterCreateSuperAdminAccount": "Create your Super admin account to get started", "authRegisterCreateSuperAdminAccount": "Create your Super admin account to get started",
"authRegisterSignUpWithEmail": "Sign up with Email", "authRegisterSignUpWithEmail": "Create super admin account",
"authRegisterBySigningUp": "By signing up, you agree to our", "authRegisterBySigningUp": "By creating an account, you agree to our <1>Terms of Service</1> and <3>Privacy Policy</3>",
"authRegisterFirstName": "Name",
"authRegisterLastName": "Surname",
"distributedStatusHeaderText": "Real-time, real-device coverage", "distributedStatusHeaderText": "Real-time, real-device coverage",
"distributedStatusSubHeaderText": "Powered by millions devices worldwide, view a system performance by global region, country or city", "distributedStatusSubHeaderText": "Powered by millions devices worldwide, view a system performance by global region, country or city",
"settingsGeneralSettings": "General settings", "settingsGeneralSettings": "General settings",
+4 -2
View File
@@ -54,8 +54,10 @@
"authPasswordMustMatch": "должен совпадать", "authPasswordMustMatch": "должен совпадать",
"authRegisterCreateAccount": "Создайте свою учетную запись, чтобы начать", "authRegisterCreateAccount": "Создайте свою учетную запись, чтобы начать",
"authRegisterCreateSuperAdminAccount": "Создайте учетную запись суперадминистратора, чтобы начать работу", "authRegisterCreateSuperAdminAccount": "Создайте учетную запись суперадминистратора, чтобы начать работу",
"authRegisterSignUpWithEmail": "Зарегистрироваться по электронной почте", "authRegisterSignUpWithEmail": "Создать учетную запись суперадминистратора",
"authRegisterBySigningUp": "Регистрируясь, вы соглашаетесь с нашими", "authRegisterBySigningUp": "Создавая учетную запись, вы соглашаетесь с нашими <1>Условиями использования</1> и <3>Политикой конфиденциальности</3>",
"authRegisterFirstName": "Имя",
"authRegisterLastName": "Фамилия",
"distributedStatusHeaderText": "Охват реального времени и реального устройства", "distributedStatusHeaderText": "Охват реального времени и реального устройства",
"distributedStatusSubHeaderText": "Работает на миллионах устройств по всему миру, просматривайте производительность системы по глобальному региону, стране или городу", "distributedStatusSubHeaderText": "Работает на миллионах устройств по всему миру, просматривайте производительность системы по глобальному региону, стране или городу",
"settingsGeneralSettings": "Общие настройки", "settingsGeneralSettings": "Общие настройки",
+4 -2
View File
@@ -54,8 +54,10 @@
"authPasswordMustMatch": "eşleşmelidir", "authPasswordMustMatch": "eşleşmelidir",
"authRegisterCreateAccount": "Hesap oluşturmak için devam et", "authRegisterCreateAccount": "Hesap oluşturmak için devam et",
"authRegisterCreateSuperAdminAccount": "Super admin hesabınızı oluşturmak için devam edin", "authRegisterCreateSuperAdminAccount": "Super admin hesabınızı oluşturmak için devam edin",
"authRegisterSignUpWithEmail": "E-posta ile kayıt ol", "authRegisterSignUpWithEmail": "Süper yönetici hesabı oluştur",
"authRegisterBySigningUp": "Kayıt olarak, aşağıdaki şartları kabul ediyorsunuz:", "authRegisterBySigningUp": "Bir hesap oluşturarak, <1>Hizmet Şartlarımızı</1> ve <3>Gizlilik Politikamızı</3> kabul etmiş olursunuz",
"authRegisterFirstName": "Ad",
"authRegisterLastName": "Soyad",
"distributedStatusHeaderText": "Gerçek zamanlı, Gerçek cihazlar kapsamı", "distributedStatusHeaderText": "Gerçek zamanlı, Gerçek cihazlar kapsamı",
"distributedStatusSubHeaderText": "Dünya çapında milyonlarca cihaz tarafından desteklenen sistem performansını küresel bölgeye, ülkeye veya şehre göre görüntüleyin", "distributedStatusSubHeaderText": "Dünya çapında milyonlarca cihaz tarafından desteklenen sistem performansını küresel bölgeye, ülkeye veya şehre göre görüntüleyin",
"settingsGeneralSettings": "Genel ayarlar", "settingsGeneralSettings": "Genel ayarlar",