Skip to content

Commit

Permalink
i18n: mark strings for CreatibutorsFieldItem.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Dec 4, 2024
1 parent f19eec1 commit 7ef98e3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (C) 2020-2024 CERN.
// Copyright (C) 2020-2022 Northwestern University.
// Copyright (C) 2021 New York University.
// Copyright (C) 2024 KTH Royal Institute of Technology.
//
// Invenio-RDM-Records is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -111,7 +112,7 @@ export const CreatibutorsFieldItem = ({
(identifier) => identifier.scheme === "orcid"
) && (
<img
alt="ORCID logo"
alt={i18next.t("ORCID logo")}
className="inline-id-icon mr-5"
src="/static/images/orcid.svg"
width="16"
Expand All @@ -122,7 +123,7 @@ export const CreatibutorsFieldItem = ({
(identifier) => identifier.scheme === "ror"
) && (
<img
alt="ROR logo"
alt={i18next.t("ROR logo")}
className="inline-id-icon mr-5"
src="/static/images/ror-icon.svg"
width="16"
Expand All @@ -133,7 +134,7 @@ export const CreatibutorsFieldItem = ({
(identifier) => identifier.scheme === "gnd"
) && (
<img
alt="GND logo"
alt={i18next.t("GND logo")}
className="inline-id-icon mr-5"
src="/static/images/gnd-icon.svg"
width="16"
Expand All @@ -145,7 +146,7 @@ export const CreatibutorsFieldItem = ({
</List.Description>
{firstError && (
<Label pointing="left" prompt>
{firstError.scheme ? firstError.scheme : "Invalid identifiers"}
{firstError.scheme ? firstError.scheme : i18next.t("Invalid identifiers")}

Check failure on line 149 in invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/CreatibutorsField/CreatibutorsFieldItem.js

View workflow job for this annotation

GitHub Actions / JS / Tests (18.x)

Replace `·?·firstError.scheme` with `⏎··················?·firstError.scheme⏎·················`

Check failure on line 149 in invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/CreatibutorsField/CreatibutorsFieldItem.js

View workflow job for this annotation

GitHub Actions / JS / Tests (20.x)

Replace `·?·firstError.scheme` with `⏎··················?·firstError.scheme⏎·················`
</Label>
)}
</List.Content>
Expand Down

0 comments on commit 7ef98e3

Please sign in to comment.