From f19eec14d1d0045dc19ee22f26286dd3167eb47d Mon Sep 17 00:00:00 2001 From: Sam Arbid Date: Wed, 4 Dec 2024 15:33:00 +0100 Subject: [PATCH] i18n: mark strings for ComingSoonField.js --- .../src/deposit/fields/ComingSoonField/ComingSoonField.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/ComingSoonField/ComingSoonField.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/ComingSoonField/ComingSoonField.js index 5e56491dd..ff82cdd3c 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/ComingSoonField/ComingSoonField.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/ComingSoonField/ComingSoonField.js @@ -1,6 +1,7 @@ // This file is part of Invenio-RDM-Records // Copyright (C) 2020-2023 CERN. // Copyright (C) 2020-2022 Northwestern 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. @@ -9,6 +10,7 @@ import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "react-invenio-forms"; import { Form, Segment } from "semantic-ui-react"; +import { i18next } from "@translations/invenio_rdm_records/i18next"; export class ComingSoonField extends Component { render() { @@ -17,7 +19,7 @@ export class ComingSoonField extends Component { - Coming soon + {i18next.t("Coming soon")} );