From 8975f42669b4447f9237ef69ecc371989e3310c1 Mon Sep 17 00:00:00 2001 From: s0alken Date: Thu, 27 Apr 2023 18:39:15 -0400 Subject: [PATCH 1/3] Adding translation to react-dom: APIs --- src/components/MDX/ExpandableCallout.tsx | 2 +- src/content/reference/react-dom/index.md | 28 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/MDX/ExpandableCallout.tsx b/src/components/MDX/ExpandableCallout.tsx index dac047694..75a3804d8 100644 --- a/src/components/MDX/ExpandableCallout.tsx +++ b/src/components/MDX/ExpandableCallout.tsx @@ -18,7 +18,7 @@ interface ExpandableCalloutProps { const variantMap = { deprecated: { - title: 'Deprecated', + title: 'Obsoleto', Icon: IconWarning, containerClasses: 'bg-red-5 dark:bg-red-60 dark:bg-opacity-20', textColor: 'text-red-50 dark:text-red-40', diff --git a/src/content/reference/react-dom/index.md b/src/content/reference/react-dom/index.md index 5b2648c18..1e5a9873e 100644 --- a/src/content/reference/react-dom/index.md +++ b/src/content/reference/react-dom/index.md @@ -4,7 +4,7 @@ title: React DOM APIs -The `react-dom` package contains methods that are only supported for the web applications (which run in the browser DOM environment). They are not supported for React Native. +El paquete `react-dom` incluye métodos que sólo son compatibles con aplicaciones web (aquellas que se ejecutan en el entorno del DOM del navegador). No son compatibles con React Native. @@ -12,32 +12,32 @@ The `react-dom` package contains methods that are only supported for the web app ## APIs {/*apis*/} -These APIs can be imported from your components. They are rarely used: +Puedes importar las siguientes APIs en tus componentes, pero su uso es poco común: -* [`createPortal`](/reference/react-dom/createPortal) lets you render child components in a different part of the DOM tree. -* [`flushSync`](/reference/react-dom/flushSync) lets you force React to flush a state update and update the DOM synchronously. +* [`createPortal`](/reference/react-dom/createPortal) permite renderizar componentes hijos en una parte diferente del árbol del DOM. +* [`flushSync`](/reference/react-dom/flushSync) permite forzar a React a actualizar el estado y el DOM de manera síncrona. --- -## Entry points {/*entry-points*/} +## Puntos de entrada {/*entry-points*/} -The `react-dom` package provides two additional entry points: +El paquete `react-dom` proporciona dos puntos de entrada adicionales: -* [`react-dom/client`](/reference/react-dom/client) contains APIs to render React components on the client (in the browser). -* [`react-dom/server`](/reference/react-dom/server) contains APIs to render React components on the server. +* [`react-dom/client`](/reference/react-dom/client) incluye APIs para renderizar componentes de React en el cliente, es decir, en el navegador. +* [`react-dom/server`](/reference/react-dom/server) incluye APIs para renderizar componentes de react en el servidor. --- -## Deprecated APIs {/*deprecated-apis*/} +## APIs obsoletas {/*deprecated-apis*/} -These APIs will be removed in a future major version of React. +Las siguientes APIs se eliminarán en las próximas versiones importantes de React. -* [`findDOMNode`](/reference/react-dom/findDOMNode) finds the closest DOM node corresponding to a class component instance. -* [`hydrate`](/reference/react-dom/hydrate) mounts a tree into the DOM created from server HTML. Deprecated in favor of [`hydrateRoot`](/reference/react-dom/client/hydrateRoot). -* [`render`](/reference/react-dom/render) mounts a tree into the DOM. Deprecated in favor of [`createRoot`](/reference/react-dom/client/createRoot). -* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) unmounts a tree from the DOM. Deprecated in favor of [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount) +* [`findDOMNode`](/reference/react-dom/findDOMNode) busca el nodo de DOM más cercano correspondiente a una instancia de componente de clase. +* [`hydrate`](/reference/react-dom/hydrate) monta un árbol en el DOM creado a partir de HTML generado en el servidor. En su lugar, se recomienda usar [`hydrateRoot`](/reference/react-dom/client/hydrateRoot). +* [`render`](/reference/react-dom/render) monta un árbol en el DOM. En su lugar, se recomienda usar [`createRoot`](/reference/react-dom/client/createRoot). +* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) desmonta un árbol del DOM. En su lugar, se recomienda usar [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount) From a6cf3a60f7cbe3d7f7fdb708914d877fb0120f5f Mon Sep 17 00:00:00 2001 From: s0alken Date: Wed, 3 May 2023 13:15:32 -0400 Subject: [PATCH 2/3] updated translation --- src/components/MDX/ExpandableCallout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MDX/ExpandableCallout.tsx b/src/components/MDX/ExpandableCallout.tsx index 75a3804d8..dac047694 100644 --- a/src/components/MDX/ExpandableCallout.tsx +++ b/src/components/MDX/ExpandableCallout.tsx @@ -18,7 +18,7 @@ interface ExpandableCalloutProps { const variantMap = { deprecated: { - title: 'Obsoleto', + title: 'Deprecated', Icon: IconWarning, containerClasses: 'bg-red-5 dark:bg-red-60 dark:bg-opacity-20', textColor: 'text-red-50 dark:text-red-40', From eeaf4216be26acd88e2b59f49f619b9af270cbf4 Mon Sep 17 00:00:00 2001 From: s0alken Date: Wed, 3 May 2023 14:05:43 -0400 Subject: [PATCH 3/3] Update src/content/reference/react-dom/index.md --- src/content/reference/react-dom/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/index.md b/src/content/reference/react-dom/index.md index 1e5a9873e..0ae9625b3 100644 --- a/src/content/reference/react-dom/index.md +++ b/src/content/reference/react-dom/index.md @@ -32,7 +32,7 @@ El paquete `react-dom` proporciona dos puntos de entrada adicionales: -Las siguientes APIs se eliminarán en las próximas versiones importantes de React. +Las siguientes APIs se eliminarán en una próxima versión mayor de React.