Skip to content

Commit 32dfa41

Browse files
SarahW91tmorrell
authored andcommitted
ui(translations): mark strings as translatable
1 parent bd245f3 commit 32dfa41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/errors/FormFeedbackSummary.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Invenio-RDM-Records is free software; you can redistribute it and/or modify it
77
// under the terms of the MIT License; see LICENSE file for more details.
88

9+
import { i18next } from "@translations/invenio_rdm_records/i18next";
910
import _isEmpty from "lodash/isEmpty";
1011
import React, { Component } from "react";
1112
import { Label } from "semantic-ui-react";
@@ -63,7 +64,7 @@ export class FormFeedbackSummary extends Component {
6364
const label =
6465
sectionElement?.getAttribute("data-label") ||
6566
sectionElement?.getAttribute("label") ||
66-
"Unknown section";
67+
i18next.t("Unknown section");
6768
errorSections.set(section, {
6869
label,
6970
count: (errorSections.get(section)?.count || 0) + 1,
@@ -88,7 +89,7 @@ export class FormFeedbackSummary extends Component {
8889
const label =
8990
sectionElement.getAttribute("data-label") ||
9091
sectionElement.getAttribute("label") ||
91-
"Unknown section";
92+
i18next.t("Unknown section");
9293
errorSections.set(sectionId, {
9394
label,
9495
count: (errorSections.get(sectionId)?.count || 0) + 1,

0 commit comments

Comments
 (0)