From 68c3d8a37f231e720620d8bca98e12b056ea43bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Sat, 25 Sep 2021 18:21:59 +0100 Subject: [PATCH] Add missing translations to help extension --- packages/help-extension/src/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/help-extension/src/index.tsx b/packages/help-extension/src/index.tsx index 6a890c3f9..2cb55d493 100644 --- a/packages/help-extension/src/index.tsx +++ b/packages/help-extension/src/index.tsx @@ -125,6 +125,7 @@ const plugin: JupyterFrontEndPlugin = { ); const retroNotebookURL = 'https://github.com/jupyterlab/retrolab'; + const linkLabel = trans.__('RETROLAB ON GITHUB'); const externalLinks = ( = { rel="noopener noreferrer" className="jp-Button-flat jp-AboutRetro-about-externalLinks" > - RETROLAB ON GITHUB + {linkLabel} ); + const version = trans.__('Version: %1', app.version); const body = ( <> - Version: {app.version} + {version}
{externalLinks}
); @@ -149,7 +151,7 @@ const plugin: JupyterFrontEndPlugin = { body, buttons: [ Dialog.createButton({ - label: 'Dismiss', + label: trans.__('Dismiss'), className: 'jp-AboutRetro-about-button jp-mod-reject jp-mod-styled' })