Add translation for rediret string (#2399)
* Add translation for rediret string * Simplify translations * Update success.tsx Co-authored-by: zomars <zomars@me.com>
This commit is contained in:
		
							parent
							
								
									551892fa30
								
							
						
					
					
						commit
						c07b9b96fe
					
				
					 4 changed files with 8 additions and 4 deletions
				
			
		|  | @ -25,7 +25,7 @@ module.exports = { | |||
|       "cs", | ||||
|       "sr", | ||||
|       "sv", | ||||
|       "vi" | ||||
|       "vi", | ||||
|     ], | ||||
|   }, | ||||
|   localePath: path.resolve("./public/static/locales"), | ||||
|  |  | |||
|  | @ -12,7 +12,6 @@ import { useEffect, useState, useRef } from "react"; | |||
| 
 | ||||
| import { sdkActionManager } from "@calcom/embed-core"; | ||||
| import { useLocale } from "@calcom/lib/hooks/useLocale"; | ||||
| import { EventType, Team, User } from "@calcom/prisma/client"; | ||||
| import Button from "@calcom/ui/Button"; | ||||
| import { EmailInput } from "@calcom/ui/form/fields"; | ||||
| 
 | ||||
|  | @ -93,8 +92,7 @@ function RedirectionToast({ url }: { url: string }) { | |||
|                 <p className="truncate font-medium text-white sm:mx-3"> | ||||
|                   <span className="md:hidden">Redirecting to {url} ...</span> | ||||
|                   <span className="hidden md:inline"> | ||||
|                     You are being redirected to {url} in {timeRemaining}{" "} | ||||
|                     {timeRemaining === 1 ? "second" : "seconds"}. | ||||
|                     {t("you_are_being_redirected", { url, seconds: timeRemaining })} | ||||
|                   </span> | ||||
|                 </p> | ||||
|               </div> | ||||
|  |  | |||
|  | @ -2,6 +2,8 @@ | |||
|   "trial_days_left": "You have $t(day, {\"count\": {{days}} }) left on your PRO trial", | ||||
|   "day": "{{count}} day", | ||||
|   "day_plural": "{{count}} days", | ||||
|   "second": "{{count}} second", | ||||
|   "second_plural": "{{count}} seconds", | ||||
|   "upgrade_now": "Upgrade now", | ||||
|   "accept_invitation": "Accept Invitation", | ||||
|   "calcom_explained": "Cal.com is the open source Calendly alternative putting you in control of your own data, workflow and appearance.", | ||||
|  | @ -711,6 +713,7 @@ | |||
|   "12_hour": "12 hour", | ||||
|   "24_hour": "24 hour", | ||||
|   "redirect_success_booking": "Redirect on booking ", | ||||
|   "you_are_being_redirected": "You are being redirected to {{ url }} in $t(second, {\"count\": {{seconds}} }).", | ||||
|   "external_redirect_url": "https://example.com/redirect-to-my-success-page", | ||||
|   "redirect_url_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.", | ||||
|   "duplicate": "Duplicate", | ||||
|  |  | |||
|  | @ -2,6 +2,8 @@ | |||
|   "trial_days_left": "Tienes $t(day, {\"count\": {{days}} }) restantes en tu prueba PRO", | ||||
|   "day": "{{count}} día", | ||||
|   "day_plural": "{{count}} días", | ||||
|   "second": "{{count}} segundo", | ||||
|   "second_plural": "{{count}} segundos", | ||||
|   "upgrade_now": "Actualizar ahora", | ||||
|   "accept_invitation": "Aceptar invitación", | ||||
|   "calcom_explained": "Cal.com es la alternativa de código abierto de Calendly poniéndole en control de sus propios datos, flujo de trabajo y apariencia.", | ||||
|  | @ -657,5 +659,6 @@ | |||
|   "error_404": "Error 404", | ||||
|   "availability_updated_successfully": "Disponibilidad actualizada correctamente", | ||||
|   "requires_ownership_of_a_token": "Requiere la propiedad de un token perteneciente a la siguiente dirección:", | ||||
|   "you_are_being_redirected": "Serás redirigido a {{ url }} en $t(second, {\"count\": {{seconds}} }).", | ||||
|   "example_name": "Juan Pérez" | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Hariom Balhara
						Hariom Balhara