From be61ee3a026d400b216767c1d177930933b5826b Mon Sep 17 00:00:00 2001 From: Stanley Pageot Date: Thu, 17 Mar 2022 09:29:31 -0700 Subject: [PATCH] fix: added missing input labels to translations --- src/components/blocks/ProjectDetailViewTab.js | 2 +- src/components/blocks/ProjectLabelsDetails.js | 20 +++++++++++++++++-- src/translations/tokens/es.json | 20 ++++++++++++------- src/translations/tokens/ja.json | 13 ++++++++++++ 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/src/components/blocks/ProjectDetailViewTab.js b/src/components/blocks/ProjectDetailViewTab.js index c467805f..36f9c8d7 100644 --- a/src/components/blocks/ProjectDetailViewTab.js +++ b/src/components/blocks/ProjectDetailViewTab.js @@ -92,7 +92,7 @@ const ProjectDetailedViewTab = ({ entry }) => { )} {!_.isEmpty(entry?.projectRatings) && ( - + )} {!_.isEmpty(entry?.coBenefits) && ( diff --git a/src/components/blocks/ProjectLabelsDetails.js b/src/components/blocks/ProjectLabelsDetails.js index 2620deab..65725486 100644 --- a/src/components/blocks/ProjectLabelsDetails.js +++ b/src/components/blocks/ProjectLabelsDetails.js @@ -8,8 +8,23 @@ import { } from '.'; import { SpanTwoColumnsContainer } from '..'; - const ProjectLabelsDetails = ({ data }) => { + // const createBrowserWindow = url => { + // console.log(require('electron')); + // const remote = require('electron').remote; + // const BrowserWindow = remote.BrowserWindow; + // const win = new BrowserWindow({ + // height: 600, + // width: 800, + // }); + + // win.loadURL(url); + // }; + + const handleClick = event => { + console.log(event); + }; + // const externalLink = event => { // event.preventDefault(); // shell.openExternal(event.target.href); @@ -37,11 +52,12 @@ const ProjectLabelsDetails = ({ data }) => { {data.labelLink ? data.labelLink : '---'} - {data.labelLink && } + {data.labelLink && } diff --git a/src/translations/tokens/es.json b/src/translations/tokens/es.json index b1a55936..f8004c68 100644 --- a/src/translations/tokens/es.json +++ b/src/translations/tokens/es.json @@ -122,13 +122,15 @@ "labels-validity-period-end-date-description": "Introduzca la fecha de finalización para cuando esta etiqueta sea válida.", "labels-unit-quantity-description": "Introduzca la cantidad de unidades a las que se aplica esta etiqueta.", "labels-label-link-description": "Ingrese la URL que dirige al sitio web que corresponde a esta etiqueta.", - "country-jurisdiction-of-owner": "Country Jurisdiction Of Owner", - "in-country-jurisdiction-of-owner": "In-Country Jurisdiction Of Owner", - "serial-number-block": "Serial Number Block", - "marketplace": "Marketplace", - "marketplace-link": "Marketplace Link", - "unit-tags": "Unit Tags", - "marketplace-identifier": "Marketplace Identifier", + "country-jurisdiction-of-owner": "País Jurisdicción del propietario", + "in-country-jurisdiction-of-owner": "Jurisdicción del propietario en el país", + "corresponding-adjustment-declaration": "declaración de ajuste correspondiente", + "corresponding-adjustment-status": "Estado de ajuste correspondiente", + "serial-number-block": "Bloque de número de serie", + "marketplace": "Mercado", + "marketplace-link": "Enlace a Marketplace", + "unit-tags": "Etiquetas de unidad", + "marketplace-identifier": "Identificador de Marketplace", "validation-body": "Organismo de validación", "geographic-identifier": "Identificador geográfico", "ndc-information": "Información de NDC", @@ -203,6 +205,10 @@ "in-country-region": "Región en el país", "host-country": "País de acogida", "label": "Etiqueta", + "start-date": "Fecha de inicio", + "end-date": "Fecha final", + "unit-status-reason": "motivo del estado de la unidad", + "unit-registry-link": "enlace de registro de la unidad", "crediting-period-start-date": "Fecha de inicio del período de acreditación", "crediting-period-end-date": "Fecha de finalización del período de acreditación", "validity-period-start-date": "Fecha de inicio del período de validez", diff --git a/src/translations/tokens/ja.json b/src/translations/tokens/ja.json index de33c3f1..fcb96120 100644 --- a/src/translations/tokens/ja.json +++ b/src/translations/tokens/ja.json @@ -27,6 +27,8 @@ "committed": "コミット", "staging": "ステージング", "pending": "ペンディング", + "start-date": "開始日", + "end-date": "終了日", "pending-info": "保留中のメッセージ", "create-pending-title": "保留中のアイテム", "create-pending-error": "保留中のアイテムがすべて完了するまで作成できません。", @@ -74,6 +76,9 @@ "rating-range-lowest": "定格範囲最低", "rating-range-highest": "最高評価範囲", "rating-type": "評価タイプ", + "serial-number-block": "シリアル番号ブロック", + "country-jurisdiction-of-owner": "所有者の国の管轄権", + "in-country-jurisdiction-of-owner": "所有者の国内管轄権", "cobenefits-warehouse-project-id-description": "気候倉庫内のプロジェクトの一意の識別子です。", "cobenefits-cobenefit-id-description": "プロジェクトに関連付けられた特定の共同利益の識別子。", "cobenefits-cobenefit-description": "プロジェクトで達成された共同利益を入力します。", @@ -122,6 +127,14 @@ "labels-validity-period-end-date-description": "このラベルが有効な場合の終了日を入力します。", "labels-unit-quantity-description": "このラベルを適用する単位の量を入力します。", "labels-label-link-description": "このラベルに対応する Web サイトにアクセスする URL を入力します。", + "corresponding-adjustment-declaration": "対応する調整申告", + "corresponding-adjustment-status": "対応する調整ステータス", + "marketplace": "市場", + "marketplace-identifier": "マーケットプレイス識別子", + "marketplace-link": "マーケットプレイスリンク", + "unit-status-reason": "ユニットステータス", + "unit-registry-link": "ユニット レジストリ リンク", + "unit-tags": "ユニットタグ", "validation-body": "検証本文", "geographic-identifier": "地理的識別子", "ndc-information": "NDC 情報",