Skip to content

Commit c1b9e5d

Browse files
committed
translate: translations for installation guide
Fixes #20
1 parent 3b55bfc commit c1b9e5d

File tree

3 files changed

+160
-33
lines changed

3 files changed

+160
-33
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
3232
contentPath: 'introduction/what-is-angular',
3333
},
3434
{
35+
label: 'Instalación',
36+
path: 'installation',
37+
contentPath: 'introduction/installation',
38+
},
39+
{
40+
3541
label: 'Esenciales',
3642
children: [
3743
{
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<docs-decorative-header title="Installation" imgSrc="adev/src/assets/images/what_is_angular.svg"> <!-- markdownlint-disable-line -->
2+
</docs-decorative-header>
3+
4+
Get started with Angular quickly with online starters or locally with your terminal.
5+
6+
## Play Online
7+
8+
If you just want to play around with Angular in your browser without setting up a project, you can use our online sandbox:
9+
10+
<docs-card-container>
11+
<docs-card title="" href="/playground" link="Open on Playground">
12+
The fastest way to play with an Angular app. No setup required.
13+
</docs-card>
14+
</docs-card-container>
15+
16+
## Set up a new project locally
17+
18+
If you're starting a new project, you'll most likely want to create a local project so that you can use tooling such as Git.
19+
20+
### Prerequisites
21+
22+
- **Node.js** - [v20.11.1 or newer](/reference/versions)
23+
- **Text editor** - We recommend [Visual Studio Code](https://code.visualstudio.com/)
24+
- **Terminal** - Required for running Angular CLI commands
25+
- **Development Tool** - To improve your development workflow, we recommend the [Angular Language Service](/tools/language-service)
26+
27+
### Instructions
28+
29+
The following guide will walk you through setting up a local Angular project.
30+
31+
#### Install Angular CLI
32+
33+
Open a terminal (if you're using [Visual Studio Code](https://code.visualstudio.com/), you can open an [integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal)) and run the following command:
34+
35+
<docs-code-multifile>
36+
<docs-code
37+
header="npm"
38+
>
39+
npm install -g @angular/cli
40+
</docs-code>
41+
<docs-code
42+
header="pnpm"
43+
>
44+
pnpm install -g @angular/cli
45+
</docs-code>
46+
<docs-code
47+
header="yarn"
48+
>
49+
yarn global add @angular/cli
50+
</docs-code>
51+
<docs-code
52+
header="bun"
53+
>
54+
bun install -g @angular/cli
55+
</docs-code>
56+
57+
</docs-code-multifile>
58+
59+
If you are having issues running this command in Windows or Unix, check out the [CLI docs](/tools/cli/setup-local#install-the-angular-cli) for more info.
60+
61+
#### Create a new project
62+
63+
In your terminal, run the CLI command `ng new` with the desired project name. In the following examples, we'll be using the example project name of `my-first-angular-app`.
64+
65+
<docs-code language="shell">
66+
67+
ng new <project-name>
68+
69+
</docs-code>
70+
71+
You will be presented with some configuration options for your project. Use the arrow and enter keys to navigate and select which options you desire.
72+
73+
If you don't have any preferences, just hit the enter key to take the default options and continue with the setup.
74+
75+
After you select the configuration options and the CLI runs through the setup, you should see the following message:
76+
77+
```shell
78+
✔ Packages installed successfully.
79+
Successfully initialized git.
80+
```
81+
82+
At this point, you're now ready to run your project locally!
83+
84+
#### Running your new project locally
85+
86+
In your terminal, switch to your new Angular project.
87+
88+
<docs-code language="shell">
89+
90+
cd my-first-angular-app
91+
92+
</docs-code>
93+
94+
All of your dependencies should be installed at this point (which you can verify by checking for the existent for a `node_modules` folder in your project), so you can start your project by running the command:
95+
96+
<docs-code language="shell">
97+
98+
npm start
99+
100+
</docs-code>
101+
102+
If everything is successful, you should see a similar confirmation message in your terminal:
103+
104+
```shell
105+
Watch mode enabled. Watching for file changes...
106+
NOTE: Raw file sizes do not reflect development server per-request transformations.
107+
➜ Local: http://localhost:4200/
108+
➜ press h + enter to show help
109+
```
110+
111+
And now you can visit the path in `Local` (e.g., `http://localhost:4200`) to see your application. Happy coding! 🎉
112+
113+
### Using AI for Development
114+
115+
To get started with building in your preferred AI powered IDE, [check out Angular prompt rules and best practices](/ai/develop-with-ai).
116+
117+
## Next steps
118+
119+
Now that you've created your Angular project, you can learn more about Angular in our [Essentials guide](/essentials) or choose a topic in our in-depth guides!
Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
<docs-decorative-header title="Installation" imgSrc="adev/src/assets/images/what_is_angular.svg"> <!-- markdownlint-disable-line -->
1+
<docs-decorative-header title="Instalación" imgSrc="adev/src/assets/images/what_is_angular.svg"> <!-- markdownlint-disable-line -->
22
</docs-decorative-header>
33

4-
Get started with Angular quickly with online starters or locally with your terminal.
4+
Comienza con Angular rápidamente usando iniciadores en línea o localmente con tu terminal.
55

6-
## Play Online
6+
## Probar en línea
77

8-
If you just want to play around with Angular in your browser without setting up a project, you can use our online sandbox:
8+
Si solo quieres experimentar con Angular en tu navegador sin configurar un proyecto, puedes usar nuestro sandbox en línea:
99

1010
<docs-card-container>
11-
<docs-card title="" href="/playground" link="Open on Playground">
12-
The fastest way to play with an Angular app. No setup required.
11+
<docs-card title="" href="/playground" link="Abrir en Playground">
12+
La forma más rápida de experimentar con una aplicación Angular. No requiere configuración.
1313
</docs-card>
1414
</docs-card-container>
1515

16-
## Set up a new project locally
16+
## Configurar un nuevo proyecto localmente
1717

18-
If you're starting a new project, you'll most likely want to create a local project so that you can use tooling such as Git.
18+
Si estás comenzando un nuevo proyecto, lo más probable es que quieras crear un proyecto local para poder usar herramientas como Git.
1919

20-
### Prerequisites
20+
### Prerrequisitos
2121

22-
- **Node.js** - [v20.11.1 or newer](/reference/versions)
23-
- **Text editor** - We recommend [Visual Studio Code](https://code.visualstudio.com/)
24-
- **Terminal** - Required for running Angular CLI commands
25-
- **Development Tool** - To improve your development workflow, we recommend the [Angular Language Service](/tools/language-service)
22+
- **Node.js** - [v20.11.1 o más reciente](/reference/versions)
23+
- **Editor de texto** - Recomendamos [Visual Studio Code](https://code.visualstudio.com/)
24+
- **Terminal** - Requerido para ejecutar comandos de Angular CLI
25+
- **Herramienta de desarrollo** - Para mejorar tu flujo de trabajo de desarrollo, recomendamos el [Angular Language Service](/tools/language-service)
2626

27-
### Instructions
27+
### Instrucciones
2828

29-
The following guide will walk you through setting up a local Angular project.
29+
La siguiente guía te explicará cómo configurar un proyecto de Angular de forma local.
3030

31-
#### Install Angular CLI
31+
#### Instalar Angular CLI
3232

33-
Open a terminal (if you're using [Visual Studio Code](https://code.visualstudio.com/), you can open an [integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal)) and run the following command:
33+
Abre una terminal (si estás usando [Visual Studio Code](https://code.visualstudio.com/), puedes abrir una [terminal integrada](https://code.visualstudio.com/docs/editor/integrated-terminal)) y ejecuta el siguiente comando:
3434

3535
<docs-code-multifile>
3636
<docs-code
@@ -56,50 +56,50 @@ Open a terminal (if you're using [Visual Studio Code](https://code.visualstudio.
5656

5757
</docs-code-multifile>
5858

59-
If you are having issues running this command in Windows or Unix, check out the [CLI docs](/tools/cli/setup-local#install-the-angular-cli) for more info.
59+
Si tienes problemas ejecutando este comando en Windows o Unix, consulta la [Documentación del CLI](/tools/cli/setup-local#install-the-angular-cli) para más información.
6060

61-
#### Create a new project
61+
#### Crear un nuevo proyecto
6262

63-
In your terminal, run the CLI command `ng new` with the desired project name. In the following examples, we'll be using the example project name of `my-first-angular-app`.
63+
En tu terminal, ejecuta el comando de la CLI `ng new` con el nombre del proyecto deseado. En los siguientes ejemplos, usaremos el nombre de proyecto de ejemplo `my-first-angular-app`.
6464

6565
<docs-code language="shell">
6666

6767
ng new <project-name>
6868

6969
</docs-code>
7070

71-
You will be presented with some configuration options for your project. Use the arrow and enter keys to navigate and select which options you desire.
71+
Se te presentarán algunas opciones de configuración para tu proyecto. Usa las teclas de flecha y enter para navegar y seleccionar las opciones que desees.
7272

73-
If you don't have any preferences, just hit the enter key to take the default options and continue with the setup.
73+
Si no tienes ninguna preferencia, simplemente presiona enter para aceptar las opciones predeterminadas y continuar con la configuración.
7474

75-
After you select the configuration options and the CLI runs through the setup, you should see the following message:
75+
Después de seleccionar las opciones de configuración y que la CLI la ejecute, deberias ver el siguiente mensaje:
7676

7777
```shell
7878
✔ Packages installed successfully.
7979
Successfully initialized git.
8080
```
8181

82-
At this point, you're now ready to run your project locally!
82+
En este punto, ¡ya estás listo para ejecutar tu proyecto localmente!
8383

84-
#### Running your new project locally
84+
#### Ejecutar tu nuevo proyecto localmente
8585

86-
In your terminal, switch to your new Angular project.
86+
En tu termina, cambia a tu nuevo proyecto en Angular.
8787

8888
<docs-code language="shell">
8989

9090
cd my-first-angular-app
9191

9292
</docs-code>
9393

94-
All of your dependencies should be installed at this point (which you can verify by checking for the existent for a `node_modules` folder in your project), so you can start your project by running the command:
94+
Todas tus dependencias deberían estar instaladas en este punto (lo cual puedes verificar revisando la existencia de una carpeta `node_modules` en tu proyecto), así que puedes iniciar tu proyecto ejecutando el comando:
9595

9696
<docs-code language="shell">
9797

9898
npm start
9999

100100
</docs-code>
101101

102-
If everything is successful, you should see a similar confirmation message in your terminal:
102+
Si todo es exitoso, deberías ver un mensaje de confirmación similar en tu terminal:
103103

104104
```shell
105105
Watch mode enabled. Watching for file changes...
@@ -108,12 +108,14 @@ NOTE: Raw file sizes do not reflect development server per-request transformatio
108108
➜ press h + enter to show help
109109
```
110110

111-
And now you can visit the path in `Local` (e.g., `http://localhost:4200`) to see your application. Happy coding! 🎉
111+
Y ahora puedes visitar la ruta en `Local` (por ejemplo, `http://localhost:4200`) para ver tu aplicación. ¡Disfruta programando! 🎉
112112

113-
### Using AI for Development
114113

115-
To get started with building in your preferred AI powered IDE, [check out Angular prompt rules and best practices](/ai/develop-with-ai).
114+
### Usar IA para el desarrollo
116115

117-
## Next steps
116+
Para comenzar a construir en tu IDE preferido con IA, [consulta las reglas de prompts de Angular y las mejores prácticas](/ai/develop-with-ai).
118117

119-
Now that you've created your Angular project, you can learn more about Angular in our [Essentials guide](/essentials) or choose a topic in our in-depth guides!
118+
119+
## Próximos pasos
120+
121+
Ahora que has creado tu proyecto Angular, puedes aprender más sobre Angular en nuestra [Guía de Fundamentos](/essentials) o elegir un tema en nuestras guías detalladas!

0 commit comments

Comments
 (0)