Skip to content

Commit

Permalink
fix: run i18next, add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
naumovski-filip committed Oct 18, 2023
1 parent 5ad40d3 commit 0356463
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions public/locales/en/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
"edit_card": "Edit card",
"paypal": "PayPal",
"update_payment_details": "Update payment details",
"update_payment_success": "Your payment details have been updated",
"longer_than_usual": "The payment is taking longer than usual. Please try again later."
"update_payment_success": "Your payment details have been updated"
},
"periods": {
"day_one": "day",
Expand Down
1 change: 0 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"live": "LIVE",
"now": "Now",
"optional": "(Optional)",
"play_item": "Play {{title}}",
"scheduled": "Scheduled",
"series": "series",
"sign_in": "Sign in",
Expand Down
4 changes: 3 additions & 1 deletion public/locales/en/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@
"no_one_watching": "There’s no one watching.",
"validation": {
"name": {
"invalid_characters": "Your profile name can only contain letters, numbers, and spaces.",
"required": "Please enter a name for your profile.",
"too_short": "Please enter at least 2 characters."
"too_long": "Please limit your profile name to {{count}} characters or fewer.",
"too_short": "Please enter at least {{count}} characters."
}
},
"watch_now": "Watch now"
Expand Down
3 changes: 1 addition & 2 deletions public/locales/es/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@
"edit_card": "Editar tarjeta",
"paypal": "PayPal",
"update_payment_details": "Actualizar detalles de pago",
"update_payment_success": "Sus detalles de pago han sido actualizados",
"longer_than_usual": "El pago está tardando más de lo habitual. Por favor, inténtelo de nuevo más tarde."
"update_payment_success": "Sus detalles de pago han sido actualizados"
},
"periods": {
"day_one": "día",
Expand Down
1 change: 0 additions & 1 deletion public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"live": "EN VIVO",
"now": "Ahora",
"optional": "(Opcional)",
"play_item": "Reproducir {{title}}",
"scheduled": "Programada",
"series": "serie",
"sign_in": "Iniciar sesión",
Expand Down
6 changes: 4 additions & 2 deletions public/locales/es/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@
"no_one_watching": "No hay nadie mirando.",
"validation": {
"name": {
"required": "Por favor",
"too_short": "Por favor"
"invalid_characters": "",
"required": "",
"too_long": "",
"too_short": ""
}
},
"watch_now": ""
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Profiles/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const Form = ({ initialValues, formHandler, selectedAvatar, showCancelButton = t
name: string()
.trim()
.required(t('profile.validation.name.required'))
.min(3, t('profile.validation.name.too_short'))
.max(30, t('profile.validation.name.too_long'))
.min(3, t('profile.validation.name.too_short', { count: 3 }))
.max(30, t('profile.validation.name.too_long', { count: 30 }))
.matches(/^[a-zA-Z0-9\s]*$/, t('profile.validation.name.invalid_characters')),
});

Expand Down

0 comments on commit 0356463

Please sign in to comment.