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", |       "cs", | ||||||
|       "sr", |       "sr", | ||||||
|       "sv", |       "sv", | ||||||
|       "vi" |       "vi", | ||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
|   localePath: path.resolve("./public/static/locales"), |   localePath: path.resolve("./public/static/locales"), | ||||||
|  |  | ||||||
|  | @ -12,7 +12,6 @@ import { useEffect, useState, useRef } from "react"; | ||||||
| 
 | 
 | ||||||
| import { sdkActionManager } from "@calcom/embed-core"; | import { sdkActionManager } from "@calcom/embed-core"; | ||||||
| import { useLocale } from "@calcom/lib/hooks/useLocale"; | import { useLocale } from "@calcom/lib/hooks/useLocale"; | ||||||
| import { EventType, Team, User } from "@calcom/prisma/client"; |  | ||||||
| import Button from "@calcom/ui/Button"; | import Button from "@calcom/ui/Button"; | ||||||
| import { EmailInput } from "@calcom/ui/form/fields"; | 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"> |                 <p className="truncate font-medium text-white sm:mx-3"> | ||||||
|                   <span className="md:hidden">Redirecting to {url} ...</span> |                   <span className="md:hidden">Redirecting to {url} ...</span> | ||||||
|                   <span className="hidden md:inline"> |                   <span className="hidden md:inline"> | ||||||
|                     You are being redirected to {url} in {timeRemaining}{" "} |                     {t("you_are_being_redirected", { url, seconds: timeRemaining })} | ||||||
|                     {timeRemaining === 1 ? "second" : "seconds"}. |  | ||||||
|                   </span> |                   </span> | ||||||
|                 </p> |                 </p> | ||||||
|               </div> |               </div> | ||||||
|  |  | ||||||
|  | @ -2,6 +2,8 @@ | ||||||
|   "trial_days_left": "You have $t(day, {\"count\": {{days}} }) left on your PRO trial", |   "trial_days_left": "You have $t(day, {\"count\": {{days}} }) left on your PRO trial", | ||||||
|   "day": "{{count}} day", |   "day": "{{count}} day", | ||||||
|   "day_plural": "{{count}} days", |   "day_plural": "{{count}} days", | ||||||
|  |   "second": "{{count}} second", | ||||||
|  |   "second_plural": "{{count}} seconds", | ||||||
|   "upgrade_now": "Upgrade now", |   "upgrade_now": "Upgrade now", | ||||||
|   "accept_invitation": "Accept Invitation", |   "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.", |   "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", |   "12_hour": "12 hour", | ||||||
|   "24_hour": "24 hour", |   "24_hour": "24 hour", | ||||||
|   "redirect_success_booking": "Redirect on booking ", |   "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", |   "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.", |   "redirect_url_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.", | ||||||
|   "duplicate": "Duplicate", |   "duplicate": "Duplicate", | ||||||
|  |  | ||||||
|  | @ -2,6 +2,8 @@ | ||||||
|   "trial_days_left": "Tienes $t(day, {\"count\": {{days}} }) restantes en tu prueba PRO", |   "trial_days_left": "Tienes $t(day, {\"count\": {{days}} }) restantes en tu prueba PRO", | ||||||
|   "day": "{{count}} día", |   "day": "{{count}} día", | ||||||
|   "day_plural": "{{count}} días", |   "day_plural": "{{count}} días", | ||||||
|  |   "second": "{{count}} segundo", | ||||||
|  |   "second_plural": "{{count}} segundos", | ||||||
|   "upgrade_now": "Actualizar ahora", |   "upgrade_now": "Actualizar ahora", | ||||||
|   "accept_invitation": "Aceptar invitación", |   "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.", |   "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", |   "error_404": "Error 404", | ||||||
|   "availability_updated_successfully": "Disponibilidad actualizada correctamente", |   "availability_updated_successfully": "Disponibilidad actualizada correctamente", | ||||||
|   "requires_ownership_of_a_token": "Requiere la propiedad de un token perteneciente a la siguiente dirección:", |   "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" |   "example_name": "Juan Pérez" | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Hariom Balhara
						Hariom Balhara