Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d2: add Spanish translation #12742

Merged
merged 14 commits into from
May 19, 2024
28 changes: 28 additions & 0 deletions pages.es/common/d2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# d2

> Un lenguaje moderno de scripting de diagramas que convierte texto en diagramas.
> Más información: <https://d2lang.com/tour/man>.
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

- Compila y renderiza un archivo fuente D2 en un archivo SVG o PNG:

This comment was marked as duplicate.

This comment was marked as duplicate.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description of the first example was recently updated from:
- Compile and render a D2 source file into an SVG or PNG file:
to:
- Compile and render a D2 source file into an output file:.
This should be updated there too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


`d2 {{ruta/al/archivo_de_entrada.d2}} {{ruta/al/archivo_de_salida.ext}}`

- Ve en directo los cambios realizados en un archivo fuente D2 en el navegador web predeterminado:

`d2 --watch {{ruta/al/archivo_de_entrada.d2}} {{ruta/al/archivo_de_salida.ext}}`

- Formatea un archivo fuente D2:

`d2 fmt {{ruta/al/archivo_de_entrada.d2}}`

- Lista los temas disponibles:

`d2 themes`

- Usa un [t]ema diferente para el archivo de salida (primero enumera los temas disponibles para obtener el `theme_id` deseado):

`d2 --theme {{identificador_tema}} {{ruta/al/archivo_de_entrada.d2}} {{ruta/al/archivo_de_salida.ext}}`

- Haz que los diagramas renderizados parezcan bocetos hechos a mano:

`d2 --sketch true {{ruta/al/archivo_de_entrada.d2}} {{ruta/al/archivo_de_salida.ext}}`