mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
add title translation
This commit is contained in:
@@ -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