mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 05:55:44 +01:00
fixed wrong usage of Trans component
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Trans, WithTranslation, withTranslation } from "react-i18next";
|
import { Trans } from "react-i18next";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
||||||
@@ -12,7 +12,7 @@ import ChangesetAuthor from "./ChangesetAuthor";
|
|||||||
import ChangesetTags from "./ChangesetTags";
|
import ChangesetTags from "./ChangesetTags";
|
||||||
import ChangesetButtonGroup from "./ChangesetButtonGroup";
|
import ChangesetButtonGroup from "./ChangesetButtonGroup";
|
||||||
|
|
||||||
type Props = WithTranslation & {
|
type Props = {
|
||||||
repository: Repository;
|
repository: Repository;
|
||||||
changeset: Changeset;
|
changeset: Changeset;
|
||||||
};
|
};
|
||||||
@@ -95,10 +95,10 @@ class ChangesetRow extends React.Component<Props> {
|
|||||||
</ExtensionPoint>
|
</ExtensionPoint>
|
||||||
</h4>
|
</h4>
|
||||||
<p className="is-hidden-touch">
|
<p className="is-hidden-touch">
|
||||||
<Trans i18nKey="changeset.summary" values={{ id: changesetId, time: dateFromNow }} />
|
<Trans i18nKey="repos:changeset.summary" components={[changesetId, dateFromNow]} />
|
||||||
</p>
|
</p>
|
||||||
<p className="is-hidden-desktop">
|
<p className="is-hidden-desktop">
|
||||||
<Trans i18nKey="changeset.shortSummary" values={{ id: changesetId, time: dateFromNow }} />
|
<Trans i18nKey="repos:changeset.shortSummary" components={[changesetId, dateFromNow]} />
|
||||||
</p>
|
</p>
|
||||||
<AuthorWrapper className="is-size-7">
|
<AuthorWrapper className="is-size-7">
|
||||||
<ChangesetAuthor changeset={changeset} />
|
<ChangesetAuthor changeset={changeset} />
|
||||||
@@ -128,4 +128,4 @@ class ChangesetRow extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default withTranslation("repos")(ChangesetRow);
|
export default ChangesetRow;
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
},
|
},
|
||||||
"changeset": {
|
"changeset": {
|
||||||
"description": "Beschreibung",
|
"description": "Beschreibung",
|
||||||
"summary": "Changeset {{id}} wurde committet {{time}}",
|
"summary": "Changeset <0/> wurde committet <1/>",
|
||||||
"shortSummary": "Committet {{id}} {{time}}",
|
"shortSummary": "Committet <0/> <1/>",
|
||||||
"tags": "Tags",
|
"tags": "Tags",
|
||||||
"diffNotSupported": "Diff des Changesets wird von diesem Repositorytyp nicht unterstützt",
|
"diffNotSupported": "Diff des Changesets wird von diesem Repositorytyp nicht unterstützt",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
},
|
},
|
||||||
"changeset": {
|
"changeset": {
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"summary": "Changeset {{id}} was committed {{time}}",
|
"summary": "Changeset <0/> was committed <1/>",
|
||||||
"shortSummary": "Committed {{id}} {{time}}",
|
"shortSummary": "Committed <0/> <1/>",
|
||||||
"tags": "Tags",
|
"tags": "Tags",
|
||||||
"diffNotSupported": "Diff of changesets is not supported by the type of repository",
|
"diffNotSupported": "Diff of changesets is not supported by the type of repository",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
},
|
},
|
||||||
"changeset": {
|
"changeset": {
|
||||||
"description": "Descripción",
|
"description": "Descripción",
|
||||||
"summary": "El changeset {{id}} fue entregado {{time}}",
|
"summary": "El changeset <0/> fue entregado <1/>",
|
||||||
"shortSummary": "Entregado {{id}} {{time}}",
|
"shortSummary": "Entregado <0/> <1/>",
|
||||||
"tags": "Etiquetas",
|
"tags": "Etiquetas",
|
||||||
"diffNotSupported": "La comparación de changesets no es soportada por el tipo de repositorio",
|
"diffNotSupported": "La comparación de changesets no es soportada por el tipo de repositorio",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ i18n
|
|||||||
},
|
},
|
||||||
|
|
||||||
react: {
|
react: {
|
||||||
wait: true
|
wait: true,
|
||||||
|
useSuspense: false
|
||||||
},
|
},
|
||||||
|
|
||||||
backend: {
|
backend: {
|
||||||
|
|||||||
Reference in New Issue
Block a user