Skip to content

Commit

Permalink
fix: add missing translations and fix parsability
Browse files Browse the repository at this point in the history
  • Loading branch information
dbudzins committed Nov 27, 2023
1 parent 3b47d03 commit 09548a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions public/locales/en/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
},
"sign_up": "Sign up",
"terms_and_conditions": "Terms and Conditions",
"terms_consent": "I accept the {{termsLink}}.",
"terms_consent_jwplayer": "I accept the {{termsLink}} of JW Player.",
"user_exists": "There is already a user with this email address",
"view_password": "View password"
},
Expand Down
2 changes: 2 additions & 0 deletions public/locales/es/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@
},
"sign_up": "Registrarse",
"terms_and_conditions": "Términos y condiciones",
"terms_consent": "Acepto los {{termsLink}}.",
"terms_consent_jwplayer": "Acepto los {{termsLink}} de JW Player.",
"user_exists": "Ya existe un usuario con esta dirección de correo electrónico",
"view_password": "Ver contraseña"
},
Expand Down
2 changes: 1 addition & 1 deletion src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function getTermsConsent({ label: termsUrl }: RegisterField): Consent {
isCustomRegisterField: true,
required: true,
name: 'terms',
label: i18next.t(`account:registration.${termsUrl ? 'terms_consent' : 'terms_consent_jwplayer'}`, { termsLink }),
label: termsUrl ? i18next.t('account:registration.terms_consent', { termsLink }) : i18next.t('account:registration.terms_consent_jwplayer', { termsLink }),
enabledByDefault: false,
placeholder: '',
options: {},
Expand Down

0 comments on commit 09548a5

Please sign in to comment.