From 9803f03be8dd5fafd3fff9fdc87c9cb8c489950c Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Tue, 1 Apr 2025 20:10:03 +0200 Subject: [PATCH 1/3] Add missing i18n --- python_docs_theme/static/copybutton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_docs_theme/static/copybutton.js b/python_docs_theme/static/copybutton.js index 7367c4af..f176ff6b 100644 --- a/python_docs_theme/static/copybutton.js +++ b/python_docs_theme/static/copybutton.js @@ -33,8 +33,8 @@ const loadCopyButton = () => { /* Add a [>>>] button in the top-right corner of code samples to hide * the >>> and ... prompts and the output and thus make the code * copyable. */ - const hide_text = "Hide the prompts and output" - const show_text = "Show the prompts and output" + const hide_text = _("Hide the prompts and output") + const show_text = _("Show the prompts and output") const button = document.createElement("span") button.classList.add("copybutton") From f03db25ec9acc7847a95b76498e97db65c7a82c4 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Tue, 1 Apr 2025 20:17:44 +0200 Subject: [PATCH 2/3] Update babel config --- .babel.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.babel.cfg b/.babel.cfg index 692580d8..dda5c2f6 100644 --- a/.babel.cfg +++ b/.babel.cfg @@ -1 +1,3 @@ [jinja2: **.html] + +[javascript: **.js] From b6024ae775e80d6b2d49de2ae1ed463a1694ac84 Mon Sep 17 00:00:00 2001 From: "Tomas R." Date: Thu, 3 Apr 2025 12:05:41 +0200 Subject: [PATCH 3/3] Sort config entries Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- .babel.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.babel.cfg b/.babel.cfg index dda5c2f6..cc4c9de0 100644 --- a/.babel.cfg +++ b/.babel.cfg @@ -1,3 +1,3 @@ -[jinja2: **.html] - [javascript: **.js] + +[jinja2: **.html] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy