Skip to content

Commit 7811e85

Browse files
authored
[i18n] Support localization of page-not-translated banner (#6339)
1 parent fd873ed commit 7811e85

File tree

13 files changed

+127
-38
lines changed

13 files changed

+127
-38
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: # Bogus entry for markdownlint
3+
_build: { list: never, render: never }
4+
---
5+
6+
<i class="fa-solid fa-circle-info" style="margin-left: -1.5rem"></i> You are
7+
viewing the **English version** of this page because it has not yet been
8+
translated. Interested in helping out? See [Contributing](/docs/contributing/).

content/en/docs/demo/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OpenTelemetry Demo Documentation
2+
title: OpenTelemetry Demo Docs
33
linkTitle: Demo
44
cascade:
55
repo: https://github.com/open-telemetry/opentelemetry-demo
File renamed without changes.

content/en/docs/languages/js/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ weight: 20
1010

1111
{{% docs/languages/index-intro js /%}}
1212

13-
{{% include browser-instrumentation-warning.md %}}
13+
{{% include "./_browser-instrumentation-warning.md" %}}
1414

1515
## Version Support
1616

content/en/docs/languages/js/getting-started/browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to add OpenTelemetry to your browser app
55
weight: 20
66
---
77

8-
{{% include browser-instrumentation-warning.md %}}
8+
{{% include "./_browser-instrumentation-warning.md" %}}
99

1010
While this guide uses the example application presented below, the steps to
1111
instrument your own application should be similar.

content/en/docs/languages/js/instrumentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ above, you have a `TracerProvider` setup for you already. You can continue with
335335

336336
#### Browser
337337

338-
{{% include browser-instrumentation-warning.md %}}
338+
{{% include "./_browser-instrumentation-warning.md" %}}
339339

340340
First, ensure you've got the right packages:
341341

content/ja/announcements/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
title: お知らせ
33
cascade:
44
type: docs
5+
params:
6+
hide_feedback: true
57
default_lang_commit: 48eac183a4dd74946d5a45fa436cfc6052f30532
68
---
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: # Bogus entry for markdownlint
3+
_build: { list: never, render: never }
4+
default_lang_commit: 8d115a9df96c52dbbb3f96c05a843390d90a9800
5+
---
6+
7+
<i class="fa-solid fa-circle-info" style="margin-left: -1.5rem"></i> Você está
8+
visualizando a versão em **versão em inglês** desta página porque ela ainda não
9+
foi traduzida. Possui interesse em ajudar? Veja
10+
[como contribuir](/docs/contributing/).

content/pt/docs/languages/js/getting-started/browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 20
66
default_lang_commit: 7cb1bd39726fc03698164ee17fe9087afdac054c
77
---
88

9-
{{% include browser-instrumentation-warning.md %}}
9+
{{% include "./_browser-instrumentation-warning.md" %}}
1010

1111
Embora este guia utilize o exemplo de aplicação apresentada abaixo, as etapas
1212
para instrumentar a sua própria aplicação devem ser similares.

hugo.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ module:
321321
target: content
322322
lang: es
323323
# fallback pages
324+
- source: content/en/_includes
325+
target: content/_includes
326+
lang: es
324327
- source: content/en/announcements
325328
target: content/announcements
326329
lang: es
@@ -334,19 +337,28 @@ module:
334337
target: content
335338
lang: fr
336339
# fallback pages
340+
- source: content/en/_includes
341+
target: content/_includes
342+
lang: fr
337343
- source: content/en/announcements
338344
target: content/announcements
339345
lang: fr
340346
- excludeFiles: specs/*
341347
source: content/en/docs
342348
target: content/docs
343349
lang: fr
350+
# - source: content/en/ecosystem
351+
# target: content/ecosystem
352+
# lang: fr
344353

345354
## ja
346355
- source: content/ja
347356
target: content
348357
lang: ja
349358
# fallback pages
359+
- source: content/en/_includes
360+
target: content/_includes
361+
lang: ja
350362
- source: content/en/announcements
351363
target: content/announcements
352364
lang: ja
@@ -360,6 +372,9 @@ module:
360372
target: content
361373
lang: zh
362374
# fallback pages
375+
- source: content/en/_includes
376+
target: content/_includes
377+
lang: zh
363378
- source: content/en/announcements
364379
target: content/announcements
365380
lang: zh
@@ -373,6 +388,9 @@ module:
373388
target: content
374389
lang: pt
375390
# fallback pages
391+
- source: content/en/_includes
392+
target: content/_includes
393+
lang: pt
376394
- source: content/en/announcements
377395
target: content/announcements
378396
lang: pt

0 commit comments

Comments
 (0)