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

feat: [es] Create docs/languages/js/_index.md #5327

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/docs/languages/cpp/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
alt="C++"> A language-specific implementation of OpenTelemetry in C++.
---

{{% docs/languages/index-intro cpp /%}}
{{% docs/languages/index-intro cpp en /%}}

## Repositories

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/erlang/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cascade:
otelEcto: 1.2
---

{{% docs/languages/index-intro erlang %}}
{{% docs/languages/index-intro erlang en %}}

Packages of the API, SDK and OTLP exporter are published to
[`hex.pm`](https://hex.pm) as
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/go/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: [/golang, /golang/metrics, /golang/tracing]
weight: 16
---

{{% docs/languages/index-intro go /%}}
{{% docs/languages/index-intro go en /%}}

## More

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/java/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ cascade:
weight: 18
---

{{% docs/languages/index-intro java /%}}
{{% docs/languages/index-intro java en /%}}
2 changes: 1 addition & 1 deletion content/en/docs/languages/js/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cSpell:ignore: Roadmap
weight: 20
---

{{% docs/languages/index-intro js /%}}
{{% docs/languages/index-intro js en /%}}

{{% alert title="Warning" color="warning" %}}
{{% _param notes.browser-instrumentation %}} {{% /alert %}}
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/net/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: [/csharp, /csharp/metrics, /csharp/tracing]
weight: 12
---

{{% docs/languages/index-intro dotnet /%}}
{{% docs/languages/index-intro dotnet en /%}}

## Version Support

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/php/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 21
cSpell:ignore: mbstring opcache
---

{{% docs/languages/index-intro php /%}}
{{% docs/languages/index-intro php en /%}}

## Further Reading

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/python/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: [/python, /python/metrics, /python/tracing]
weight: 22
---

{{% docs/languages/index-intro python /%}}
{{% docs/languages/index-intro python en /%}}

## Version support

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/ruby/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: [/ruby, /ruby/metrics, /ruby/tracing]
weight: 24
---

{{% docs/languages/index-intro ruby /%}}
{{% docs/languages/index-intro ruby en /%}}

{{% docs/languages/index-adopters ruby %}}

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/rust/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 26
cSpell:ignore: stackdriver
---

{{% docs/languages/index-intro rust /%}}
{{% docs/languages/index-intro rust en /%}}

## Crates

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/swift/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >-
weight: 28
---

{{% docs/languages/index-intro swift /%}}
{{% docs/languages/index-intro swift en /%}}

## Further Reading

Expand Down
48 changes: 48 additions & 0 deletions content/es/docs/languages/js/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: JavaScript
description: >-
<img width="35" class="img-initial" src="/img/logos/32x32/JS_SDK.svg"
alt="JavaScript"> Una implementación específica de OpenTelemetry en el
lenguaje de JavaScript (para Node.js y el navegador).
aliases: [/js, /js/metrics, /js/tracing]
cSpell:ignore: Roadmap
weight: 20
default_lang_commit: 24dbe7a95c8db685e410947de05a3baf96c7c349
---

{{% docs/languages/index-intro js es /%}}

{{% alert title="Warning" color="warning" %}}
{{% _param notes.browser-instrumentation %}} {{% /alert %}}

## Soporte de versiones

OpenTelemetry en JavaScript es compatible con todas las versiones LTS activas o
en mantenimiento de Node.js. Las versiones anteriores de Node.js pueden
funcionar, pero OpenTelemetry no las ha probado.

OpenTelemetry en JavaScript no tiene una lista oficial de navegadores
compatibles. Está diseñado para funcionar en las versiones actualmente
soportadas de los principales navegadores.

Para más detalles sobre el soporte de tiempo de ejecución, consulta esta
[introducción](https://github.com/open-telemetry/opentelemetry-js#supported-runtimes).

## Repositorios

OpenTelemetry en JavaScript consta de los siguientes repositorios:

- [opentelemetry-js](https://github.com/open-telemetry/opentelemetry-js):
repositorio principal que contiene la API y SDK de distribución básica.
- [opentelemetry-js-contrib](https://github.com/open-telemetry/opentelemetry-js-contrib):
contribuciones que no son parte de la distribución básica de la API y SDK.

## Ayuda o Comentarios

Si tienes preguntas sobre OpenTelemetry JavaScript, por favor comunícate a
través de
[Discusiones de GitHub](https://github.com/open-telemetry/opentelemetry-js/discussions)
o el canal [#otel-js] en [Slack de la CNCF](https://slack.cncf.io/).

Si deseas contribuir a OpenTelemetry en JavaScript, consulta las
[instrucciones de contribución](https://github.com/open-telemetry/opentelemetry-js/blob/main/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion content/zh/docs/languages/java/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ weight: 18
default_lang_commit: 20c51c53
---

{{% docs/languages/index-intro java /%}}
{{% docs/languages/index-intro java en /%}}

### 仓库

Expand Down
15 changes: 15 additions & 0 deletions data/languages/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
introPage:
description:
'This is the OpenTelemetry {{ $name }} documentation. OpenTelemetry is an
observability framework -- an API, SDK, and tools that are designed to aid
in the generation and collection of application telemetry data such as
metrics, logs, and traces. This documentation is designed to help you
understand how to get started using OpenTelemetry {{ $name }}'
releases:
title: 'Status and Releases'
description:
'The current status of the major functional components for OpenTelemetry
{{ $name }} is as follows:'
traces: 'Traces'
metrics: 'Metrics'
logs: 'Logs'
16 changes: 16 additions & 0 deletions data/languages/es.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
introPage:
description:
'Esta es la documentación de OpenTelemetry con {{ $name }}. OpenTelemetry es
un marco de observabilidad: una API, un SDK y herramientas diseñadas para
facilitar la generación y recolección de datos de telemetría de
aplicaciones, como métricas, logs y trazas. Esta documentación está diseñada
para ayudarte a comprender cómo comenzar a usar OpenTelemetry con {{ $name
}}.'
releases:
title: 'Estados y lanzamientos'
description:
'El estado actual de los principales componentes funcionales de
OpenTelemetry {{ $name }} es el siguiente:'
traces: 'Trazas'
metrics: 'Métricas'
logs: 'Registros'
19 changes: 10 additions & 9 deletions layouts/shortcodes/docs/languages/index-intro.md
Copy link
Contributor

Choose a reason for hiding this comment

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

Let me investigate if we can achieve the same result without introducing an extra parameter.

Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
<!-- prettier-ignore -->
` -}}
{{ $lang := .Get 0 -}}
{{ $translation := .Get 1 -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please accept the following change, and then revert all of the "en" argument additions to the en pages:

Suggested change
{{ $translation := .Get 1 -}}
{{ $translation := .Get 1 | default "en" -}}

{{ $data := index $.Site.Data.instrumentation $lang }}
{{ $name := $data.name -}}

{{ $tracesStatus := partial "docs/get-signal-status.html" (dict "lang" $lang "signal" "traces") -}}
{{ $metricsStatus := partial "docs/get-signal-status.html" (dict "lang" $lang "signal" "metrics") -}}
{{ $logsStatus := partial "docs/get-signal-status.html" (dict "lang" $lang "signal" "logs") -}}

This is the OpenTelemetry {{ $name }} documentation. OpenTelemetry is an
observability framework -- an API, SDK, and tools that are designed to aid in
the generation and collection of application telemetry data such as metrics,
logs, and traces. This documentation is designed to help you understand how to
get started using OpenTelemetry {{ $name }}.
{{ $content := index $.Site.Data.languages $translation }}
{{ replace $content.introPage.description "{{ $name }}" $name }}

## Status and Releases
## {{ $content.introPage.releases.title }}

The current status of the major functional components for OpenTelemetry
{{ $name }} is as follows:
{{ $traces := $content.introPage.releases.traces }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{{ $traces := $content.introPage.releases.traces }}
{{ $traces := $content.introPage.releases.traces }}

@oayras gracias por tu contribucion, seria un abordage mas simples, traduzir el texto, sin necesitad de agregar nuevos archivos en data/languages/en.yaml. Por favor intentar este abordage, y podemos hacer un zoom. Por favor escribeme en el slack

{{ $metrics := $content.introPage.releases.metrics }}
{{ $logs := $content.introPage.releases.logs }}

| Traces | Metrics | Logs |
{{ replace $content.introPage.releases.description "{{ $name }}" $name }}

| {{ $traces }} | {{ $metrics }} | {{ $logs }} |
| ------------------- | -------------------- | ----------------- |
| {{ $tracesStatus }} | {{ $metricsStatus }} | {{ $logsStatus }} |

Expand Down