File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/errors Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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" ;
910import _isEmpty from "lodash/isEmpty" ;
1011import React , { Component } from "react" ;
1112import { 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 ,
You can’t perform that action at this time.
0 commit comments