Skip to content

Commit 32131c5

Browse files
committed
translate: translations for Devtools guides
Fixes #108
1 parent 84148e5 commit 32131c5

File tree

11 files changed

+660
-242
lines changed

11 files changed

+660
-242
lines changed

adev-es/src/app/routing/sub-navigation-data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,22 +946,22 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
946946
label: 'DevTools',
947947
children: [
948948
{
949-
label: 'Overview',
949+
label: 'Visión general',
950950
path: 'tools/devtools',
951951
contentPath: 'tools/devtools/overview',
952952
},
953953
{
954-
label: 'Components',
954+
label: 'Componentes',
955955
path: 'tools/devtools/component',
956956
contentPath: 'tools/devtools/component',
957957
},
958958
{
959-
label: 'Profiler',
959+
label: 'Perfilador',
960960
path: 'tools/devtools/profiler',
961961
contentPath: 'tools/devtools/profiler',
962962
},
963963
{
964-
label: 'Injectors',
964+
label: 'Inyectores',
965965
path: 'tools/devtools/injectors',
966966
contentPath: 'tools/devtools/injectors',
967967
},

adev-es/src/content/tools/devtools.en.md

Lines changed: 196 additions & 0 deletions
Large diffs are not rendered by default.

adev-es/src/content/tools/devtools.md

Lines changed: 113 additions & 113 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Inspect the component tree
2+
3+
## Debug your application
4+
5+
The **Components** tab lets you explore the structure of your application.
6+
You can visualize the component and directive instances in the DOM and inspect or modify their state.
7+
8+
### Explore the application structure
9+
10+
The component tree displays a hierarchical relationship of the _components and directives_ within your application.
11+
12+
<img src="assets/images/guide/devtools/component-explorer.png" alt="A screenshot of the 'Components' tab showing a tree of Angular components and directives starting the root of the application.">
13+
14+
Click the individual components or directives in the component explorer to select them and preview their properties.
15+
Angular DevTools displays properties and metadata on the right side of the component tree.
16+
17+
To look up a component or directive by name use the search box above the component tree.
18+
19+
<img src="assets/images/guide/devtools/search.png" alt="A screenshot of the 'Components' tab. The filter bar immediately underneath the tab is searching for 'todo' and all components with 'todo' in the name are highlighted in the tree. `app-todos` is currently selected and a sidebar to the right displays information about the component's properties. This includes a section of `@Output` fields and another section for other properties.">
20+
21+
### Navigate to the host node
22+
23+
To go to the host element of a particular component or directive, double-click it in the component explorer.
24+
Angular DevTools will open the Elements tab in Chrome or the Inspector tab in Firefox, and select the associated DOM node.
25+
26+
### Navigate to source
27+
28+
For components, Angular DevTools lets you navigate to the component definition in the Sources tab (Chrome) and Debugger tab (Firefox).
29+
After you select a particular component, click the icon at the top-right of the properties view:
30+
31+
<img src="assets/images/guide/devtools/navigate-source.png" alt="A screenshot of the 'Components' tab. The properties view on the right is visible for a component and the mouse rests in the upper right corner of that view on top of a `<>` icon. An adjacent tooltip reads 'Open component source'.">
32+
33+
### Update property value
34+
35+
Like browsers' DevTools, the properties view lets you edit the value of an input, output, or other properties.
36+
Right-click on the property value and if edit functionality is available for this value type, a text input will appear.
37+
Type the new value and press `Enter` to apply this value to the property.
38+
39+
<img src="assets/images/guide/devtools/update-property.png" alt="A screenshot of the 'Components' tab with the properties view open for a component. An `@Input` named `todo` contains a `label` property which is currently selected and has been manually updated to the value 'Buy milk'.">
40+
41+
### Access selected component or directive in console
42+
43+
As a shortcut in the console, Angular DevTools provides access to instances of recently selected components or directives.
44+
Type `$ng0` to get a reference to the instance of the currently selected component or directive, and type `$ng1` for the previously selected instance, `$ng2` for the instance selected before that, and so on.
45+
46+
<img src="assets/images/guide/devtools/access-console.png" alt="A screenshot of the 'Components' tab with the browser console underneath. In the console, the user has typed three commands, `$ng0`, `$ng1`, and `$ng2` to view the three most recently selected elements. After each statement, the console prints a different component reference.">
47+
48+
### Select a directive or component
49+
50+
Similar to browsers' DevTools, you can inspect the page to select a particular component or directive.
51+
Click the **_Inspect element_** icon in the top left corner within Angular DevTools and hover over a DOM element on the page.
52+
The extension recognizes the associated directives and/or components and lets you select the corresponding element in the Component tree.
53+
54+
<img src="assets/images/guide/devtools/inspect-element.png" alt="A screenshot of the 'Components' tab with an Angular todo application visible. In the very top-left corner of Angular DevTools, an icon of a screen with a mouse icon inside it is selected. The mouse rests on a todo element in the Angular application UI. The element is highlighted with a `<TodoComponent>` label displayed in an adjacent tooltip.">
55+
56+
### Inspect Deferrable views
57+
58+
Alongside the directives, the directive tree also includes [`@defer` blocks](/guide/templates/defer).
59+
60+
<img src="assets/images/guide/devtools/defer-block.png" />
61+
62+
Clicking a defer block shows more details in the properties sidebar: the different optional blocks (for example `@loading`, `@placeholder`, and `@error`), the configured triggers (defer triggers, prefetch triggers, and hydrate triggers), and timing options such as the `minimum` and `after` values.
63+
64+
### Hydration
65+
66+
When [hydration](/guide/hydration) is enabled on your SSR/SSG application, the directive tree shows the hydration status of each component.
67+
68+
In case of errors, an error message is displayed on the affected component.
69+
70+
<img src="assets/images/guide/devtools/hydration-status.png" />
71+
72+
The hydration status can also be visualized on the application itself by enabling the overlay.
73+
74+
<img src="assets/images/guide/devtools/hydration-overlay-ecom.png" />
75+
76+
Here is an illustration of the hydration overlays on a Angular e-shop example app.
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
# Inspect the component tree
1+
# Inspeccionar el árbol de componentes
22

3-
## Debug your application
3+
## Depura tu aplicación
44

5-
The **Components** tab lets you explore the structure of your application.
6-
You can visualize the component and directive instances in the DOM and inspect or modify their state.
5+
La pestaña **Components** te permite explorar la estructura de tu aplicación.
6+
Puedes visualizar las instancias de componentes y directivas en el DOM e inspeccionar o modificar su estado.
77

8-
### Explore the application structure
8+
### Explora la estructura de la aplicación
99

10-
The component tree displays a hierarchical relationship of the _components and directives_ within your application.
10+
El árbol de componentes muestra una relación jerárquica de los _componentes y directivas_ dentro de tu aplicación.
1111

12-
<img src="assets/images/guide/devtools/component-explorer.png" alt="A screenshot of the 'Components' tab showing a tree of Angular components and directives starting the root of the application.">
12+
<img src="assets/images/guide/devtools/component-explorer.png" alt="Una captura de pantalla de la pestaña 'Components' mostrando un árbol de componentes y directivas de Angular comenzando desde la raíz de la aplicación.">
1313

14-
Click the individual components or directives in the component explorer to select them and preview their properties.
15-
Angular DevTools displays properties and metadata on the right side of the component tree.
14+
Haz clic en los componentes o directivas individuales en el explorador de componentes para seleccionarlos y previsualizar sus propiedades.
15+
Angular DevTools muestra las propiedades y metadatos en el lado derecho del árbol de componentes.
1616

17-
To look up a component or directive by name use the search box above the component tree.
17+
Para buscar un componente o directiva por nombre, usa el cuadro de búsqueda encima del árbol de componentes.
1818

19-
<img src="assets/images/guide/devtools/search.png" alt="A screenshot of the 'Components' tab. The filter bar immediately underneath the tab is searching for 'todo' and all components with 'todo' in the name are highlighted in the tree. `app-todos` is currently selected and a sidebar to the right displays information about the component's properties. This includes a section of `@Output` fields and another section for other properties.">
19+
<img src="assets/images/guide/devtools/search.png" alt="Una captura de pantalla de la pestaña 'Components'. La barra de filtro inmediatamente debajo de la pestaña está buscando 'todo' y todos los componentes con 'todo' en el nombre están resaltados en el árbol. `app-todos` está actualmente seleccionado y una barra lateral a la derecha muestra información sobre las propiedades del componente. Esto incluye una sección de campos `@Output` y otra sección para otras propiedades.">
2020

21-
### Navigate to the host node
21+
### Navegar al nodo host
2222

23-
To go to the host element of a particular component or directive, double-click it in the component explorer.
24-
Angular DevTools will open the Elements tab in Chrome or the Inspector tab in Firefox, and select the associated DOM node.
23+
Para ir al elemento host de un componente o directiva en particular, haz doble clic en él en el explorador de componentes.
24+
Angular DevTools abrirá la pestaña Elements en Chrome o la pestaña Inspector en Firefox, y seleccionará el nodo DOM asociado.
2525

26-
### Navigate to source
26+
### Navegar al código fuente
2727

28-
For components, Angular DevTools lets you navigate to the component definition in the Sources tab (Chrome) and Debugger tab (Firefox).
29-
After you select a particular component, click the icon at the top-right of the properties view:
28+
Para los componentes, Angular DevTools te permite navegar a la definición del componente en la pestaña Sources (Chrome) y la pestaña Debugger (Firefox).
29+
Después de seleccionar un componente en particular, haz clic en el ícono en la esquina superior derecha de la vista de propiedades:
3030

31-
<img src="assets/images/guide/devtools/navigate-source.png" alt="A screenshot of the 'Components' tab. The properties view on the right is visible for a component and the mouse rests in the upper right corner of that view on top of a `<>` icon. An adjacent tooltip reads 'Open component source'.">
31+
<img src="assets/images/guide/devtools/navigate-source.png" alt="Una captura de pantalla de la pestaña 'Components'. La vista de propiedades a la derecha es visible para un componente y el ratón descansa en la esquina superior derecha de esa vista sobre un ícono `<>`. Un tooltip adyacente dice 'Open component source'.">
3232

33-
### Update property value
33+
### Actualizar el valor de una propiedad
3434

35-
Like browsers' DevTools, the properties view lets you edit the value of an input, output, or other properties.
36-
Right-click on the property value and if edit functionality is available for this value type, a text input will appear.
37-
Type the new value and press `Enter` to apply this value to the property.
35+
Al igual que las DevTools del navegador, la vista de propiedades te permite editar el valor de una entrada, salida u otras propiedades.
36+
Haz clic derecho en el valor de la propiedad y si la funcionalidad de edición está disponible para este tipo de valor, aparecerá un campo de texto.
37+
Escribe el nuevo valor y presiona `Enter` para aplicar este valor a la propiedad.
3838

39-
<img src="assets/images/guide/devtools/update-property.png" alt="A screenshot of the 'Components' tab with the properties view open for a component. An `@Input` named `todo` contains a `label` property which is currently selected and has been manually updated to the value 'Buy milk'.">
39+
<img src="assets/images/guide/devtools/update-property.png" alt="Una captura de pantalla de la pestaña 'Components' con la vista de propiedades abierta para un componente. Un `@Input` llamado `todo` contiene una propiedad `label` que está actualmente seleccionada y ha sido actualizada manualmente al valor 'Buy milk'.">
4040

41-
### Access selected component or directive in console
41+
### Acceder al componente o directiva seleccionada en la consola
4242

43-
As a shortcut in the console, Angular DevTools provides access to instances of recently selected components or directives.
44-
Type `$ng0` to get a reference to the instance of the currently selected component or directive, and type `$ng1` for the previously selected instance, `$ng2` for the instance selected before that, and so on.
43+
Como atajo en la consola, Angular DevTools proporciona acceso a instancias de componentes o directivas seleccionados recientemente.
44+
Escribe `$ng0` para obtener una referencia a la instancia del componente o directiva actualmente seleccionada, y escribe `$ng1` para la instancia seleccionada previamente, `$ng2` para la instancia seleccionada antes de esa, y así sucesivamente.
4545

46-
<img src="assets/images/guide/devtools/access-console.png" alt="A screenshot of the 'Components' tab with the browser console underneath. In the console, the user has typed three commands, `$ng0`, `$ng1`, and `$ng2` to view the three most recently selected elements. After each statement, the console prints a different component reference.">
46+
<img src="assets/images/guide/devtools/access-console.png" alt="Una captura de pantalla de la pestaña 'Components' con la consola del navegador debajo. En la consola, el usuario ha escrito tres comandos, `$ng0`, `$ng1` y `$ng2` para ver los tres elementos seleccionados más recientemente. Después de cada instrucción, la consola imprime una referencia de componente diferente.">
4747

48-
### Select a directive or component
48+
### Seleccionar una directiva o componente
4949

50-
Similar to browsers' DevTools, you can inspect the page to select a particular component or directive.
51-
Click the **_Inspect element_** icon in the top left corner within Angular DevTools and hover over a DOM element on the page.
52-
The extension recognizes the associated directives and/or components and lets you select the corresponding element in the Component tree.
50+
Similar a las DevTools del navegador, puedes inspeccionar la página para seleccionar un componente o directiva en particular.
51+
Haz clic en el ícono de **_Inspect element_** en la esquina superior izquierda dentro de Angular DevTools y pasa el cursor sobre un elemento DOM en la página.
52+
La extensión reconoce las directivas y/o componentes asociados y te permite seleccionar el elemento correspondiente en el árbol de componentes.
5353

54-
<img src="assets/images/guide/devtools/inspect-element.png" alt="A screenshot of the 'Components' tab with an Angular todo application visible. In the very top-left corner of Angular DevTools, an icon of a screen with a mouse icon inside it is selected. The mouse rests on a todo element in the Angular application UI. The element is highlighted with a `<TodoComponent>` label displayed in an adjacent tooltip.">
54+
<img src="assets/images/guide/devtools/inspect-element.png" alt="Una captura de pantalla de la pestaña 'Components' con una aplicación Angular de tareas visible. En la esquina superior izquierda de Angular DevTools, un ícono de una pantalla con un ícono de ratón dentro está seleccionado. El ratón descansa sobre un elemento de tarea en la interfaz de la aplicación Angular. El elemento está resaltado con una etiqueta `<TodoComponent>` mostrada en un tooltip adyacente.">
5555

56-
### Inspect Deferrable views
56+
### Inspeccionar vistas diferibles
5757

58-
Alongside the directives, the directive tree also includes [`@defer` blocks](/guide/templates/defer).
58+
Junto a las directivas, el árbol de directivas también incluye [bloques `@defer`](/guide/templates/defer).
5959

6060
<img src="assets/images/guide/devtools/defer-block.png" />
6161

62-
Clicking a defer block shows more details in the properties sidebar: the different optional blocks (for example `@loading`, `@placeholder`, and `@error`), the configured triggers (defer triggers, prefetch triggers, and hydrate triggers), and timing options such as the `minimum` and `after` values.
62+
Al hacer clic en un bloque defer se muestran más detalles en la barra lateral de propiedades: los diferentes bloques opcionales (por ejemplo `@loading`, `@placeholder` y `@error`), los triggers configurados (triggers de defer, triggers de precarga y triggers de hidratación), y opciones de temporización como los valores `minimum` y `after`.
6363

64-
### Hydration
64+
### Hidratación
6565

66-
When [hydration](/guide/hydration) is enabled on your SSR/SSG application, the directive tree shows the hydration status of each component.
66+
Cuando la [hidratación](/guide/hydration) está habilitada en tu aplicación SSR/SSG, el árbol de directivas muestra el estado de hidratación de cada componente.
6767

68-
In case of errors, an error message is displayed on the affected component.
68+
En caso de errores, se muestra un mensaje de error en el componente afectado.
6969

7070
<img src="assets/images/guide/devtools/hydration-status.png" />
7171

72-
The hydration status can also be visualized on the application itself by enabling the overlay.
72+
El estado de hidratación también se puede visualizar en la propia aplicación habilitando la superposición.
7373

7474
<img src="assets/images/guide/devtools/hydration-overlay-ecom.png" />
7575

76-
Here is an illustration of the hydration overlays on a Angular e-shop example app.
76+
Aquí se muestra una ilustración de las superposiciones de hidratación en una aplicación de ejemplo de tienda Angular.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Inspect your injectors
2+
3+
NOTE: The Injector Tree is available for Angular Applications built with version 17 or higher.
4+
5+
### View the injector hierarchy of your application
6+
7+
The **Injector Tree** tab lets you explore the structure of the Injectors configured in your application. Here you will see two trees representing the [injector hierarchy](guide/di/hierarchical-dependency-injection) of your application. One tree is your environment hierarchy, the other is your element hierarchy.
8+
9+
<img src="assets/images/guide/devtools/di-injector-tree.png" alt="A screenshot of the 'Profiler' tab displaying the injector tree tab in Angular Devtools visualizing the injector graph for an example application.">
10+
11+
### Visualize resolution paths
12+
13+
When a specific injector is selected, the path that Angular's dependency injection algorithm traverses from that injector to the root is highlighted. For element injectors, this includes highlighting the environment injectors that the dependency injection algorithm jumps to when a dependency cannot be resolved in the element hierarchy.
14+
15+
See [resolution rules](guide/di/hierarchical-dependency-injection#resolution-rules) for more details about how Angular resolves resolution paths.
16+
17+
<img src="assets/images/guide/devtools/di-injector-tree-selected.png" alt="A screenshot of the 'Profiler' tab displaying how the injector tree visualize highlights resolution paths when an injector is selected.">
18+
19+
### View injector providers
20+
21+
Clicking an injector that has configured providers will display those providers in a list on the right of the injector tree view. Here you can view the provided token and it's type. The button on the right of each provider allows you to log the provider in the console.
22+
23+
<img src="assets/images/guide/devtools/di-injector-tree-providers.png" alt="A screenshot of the 'Profiler' tab displaying how providers are made visible when an injector is selected.">

0 commit comments

Comments
 (0)