Skip to content

Commit

Permalink
fix: added missing input labels to translations
Browse files Browse the repository at this point in the history
  • Loading branch information
SPageot committed Mar 17, 2022
1 parent 4fa924e commit be61ee3
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/blocks/ProjectDetailViewTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ProjectDetailedViewTab = ({ entry }) => {
<Tab label={intl.formatMessage({ id: 'labels' })} />
)}
{!_.isEmpty(entry?.projectRatings) && (
<Tab label={intl.formatMessage({ id: 'project-ratings' })} />
<Tab label={intl.formatMessage({ id: 'ratings' })} />
)}
{!_.isEmpty(entry?.coBenefits) && (
<Tab label={intl.formatMessage({ id: 'co-benefits' })} />
Expand Down
20 changes: 18 additions & 2 deletions src/components/blocks/ProjectLabelsDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -37,11 +52,12 @@ const ProjectLabelsDetails = ({ data }) => {
</Body>
<Body>
<a
onClick={handleClick}
href={data.labelLink && data.labelLink}
target="_blank"
rel="noreferrer noopener">
{data.labelLink ? data.labelLink : '---'}
{data.labelLink && <LinkIcon height="15" width="30"/>}
{data.labelLink && <LinkIcon height="15" width="30" />}
</a>
</Body>
</StyledItem>
Expand Down
20 changes: 13 additions & 7 deletions src/translations/tokens/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions src/translations/tokens/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"committed": "コミット",
"staging": "ステージング",
"pending": "ペンディング",
"start-date": "開始日",
"end-date": "終了日",
"pending-info": "保留中のメッセージ",
"create-pending-title": "保留中のアイテム",
"create-pending-error": "保留中のアイテムがすべて完了するまで作成できません。",
Expand Down Expand Up @@ -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": "プロジェクトで達成された共同利益を入力します。",
Expand Down Expand Up @@ -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 情報",
Expand Down

0 comments on commit be61ee3

Please sign in to comment.