mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
add title translation
This commit is contained in:
@@ -113,6 +113,10 @@
|
||||
"historyButton": "History",
|
||||
"sourcesButton": "Sources",
|
||||
"downloadButton": "Download",
|
||||
"toggleButton": {
|
||||
"showMarkdown": "Markdown rendern",
|
||||
"showSources": "Sources anzeigen"
|
||||
},
|
||||
"path": "Pfad",
|
||||
"branch": "Branch",
|
||||
"commitDate": "Commitdatum",
|
||||
|
||||
@@ -113,6 +113,10 @@
|
||||
"historyButton": "History",
|
||||
"sourcesButton": "Sources",
|
||||
"downloadButton": "Download",
|
||||
"toggleButton": {
|
||||
"showMarkdown": "Render markdown",
|
||||
"showSources": "Show sources"
|
||||
},
|
||||
"path": "Path",
|
||||
"branch": "Branch",
|
||||
"commitDate": "Commit date",
|
||||
|
||||
@@ -113,6 +113,10 @@
|
||||
"historyButton": "Historia",
|
||||
"sourcesButton": "Fuentes",
|
||||
"downloadButton": "Descargar",
|
||||
"toggleButton": {
|
||||
"showMarkdown": "Render markdown",
|
||||
"showSources": "Show sources"
|
||||
},
|
||||
"path": "Ruta",
|
||||
"branch": "Rama",
|
||||
"commitDate": "Fecha de cometer",
|
||||
|
||||
@@ -67,7 +67,7 @@ class SourcesView extends React.Component<Props, State> {
|
||||
};
|
||||
|
||||
showSources() {
|
||||
const { file, revision } = this.props;
|
||||
const { file, revision, t } = this.props;
|
||||
const { contentType, language, renderMarkdown } = this.state;
|
||||
if (contentType.startsWith("image/")) {
|
||||
return <ImageViewer file={file} />;
|
||||
@@ -77,9 +77,9 @@ class SourcesView extends React.Component<Props, State> {
|
||||
<Level
|
||||
right={
|
||||
<ToggleButton
|
||||
color={renderMarkdown ? "" : "primary"}
|
||||
color={renderMarkdown ? "" : "link"}
|
||||
action={this.toggleMarkdown}
|
||||
title={renderMarkdown ? "render sources" : "render markdown"}
|
||||
title={renderMarkdown ? t("sources.content.toggleButton.showSources") : t("sources.content.toggleButton.showMarkdown")}
|
||||
>
|
||||
<i className="fab fa-markdown"></i>
|
||||
</ToggleButton>
|
||||
|
||||
Reference in New Issue
Block a user