open-telemetry / opentelemetry.io

The OpenTelemetry website and documentation
https://opentelemetry.io
Creative Commons Attribution 4.0 International
543 stars 1.2k forks source link

[pt] Add content/pt/docs/concepts/resources and layouts/shortcodes/pt/ #5132

Closed janssenlima closed 1 month ago

janssenlima commented 2 months ago

Add localization resources.

Issue: https://github.com/open-telemetry/opentelemetry.io/issues/4922

edsoncelio commented 2 months ago

Preview: https://deploy-preview-5132--opentelemetry.netlify.app/pt/docs/concepts/resources/ @chalin, the layouts/shortcodes/pt/docs/languages/resources-intro.md was translated (following these docs), but the English version is still showing instead of the Portuguese.

Do you know how to fix that? Thanks!

image
chalin commented 2 months ago

Preview: https://deploy-preview-5132--opentelemetry.netlify.app/pt/docs/concepts/resources/ @chalin, the layouts/shortcodes/pt/docs/languages/resources-intro.md was translated (following these docs), but the English version is still showing instead of the Portuguese.

Do you know how to fix that? Thanks!

@edsoncelio - yes, see https://github.com/open-telemetry/opentelemetry.io/pull/5132#discussion_r1742769613.

janssenlima commented 2 months ago

Please make the following change (add a line), and commit it to this PR:

diff --git a/.prettierignore b/.prettierignore
index 218197c0..83e0c630 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -7,6 +7,7 @@
 !/layouts/shortcodes
 /layouts/shortcodes/*
 !/layouts/shortcodes/docs
+!/layouts/shortcodes/pt

 /content/ja
 /content/zh

Commited in -> https://github.com/open-telemetry/opentelemetry.io/pull/5132/commits/5dd6b698ee51122005a3d629cbb63ea690b0f755