Add Suggest translation change link

pull/3939/head
Bogdan 10 months ago
parent 3b7989b154
commit 3ec6a73656

@ -37,6 +37,22 @@
flex-grow: 1;
}
.translation {
composes: link from '~Components/Link/Link.css';
display: flex;
align-items: center;
justify-content: center;
width: 35px;
color: #fff;
text-align: center;
line-height: 60px;
&:hover {
color: #1d563d;
}
}
.donate {
composes: link from '~Components/Link/Link.css';
@ -59,7 +75,8 @@
display: flex;
}
.donate {
.donate,
.translation {
display: none;
}
}

@ -8,6 +8,7 @@ interface CssExports {
'logoLink': string;
'right': string;
'sidebarToggleContainer': string;
'translation': string;
}
export const cssExports: CssExports;
export default cssExports;

@ -4,6 +4,7 @@ import keyboardShortcuts, { shortcuts } from 'Components/keyboardShortcuts';
import IconButton from 'Components/Link/IconButton';
import Link from 'Components/Link/Link';
import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import ArtistSearchInputConnector from './ArtistSearchInputConnector';
import KeyboardShortcutsModal from './KeyboardShortcutsModal';
import PageHeaderActionsMenuConnector from './PageHeaderActionsMenuConnector';
@ -81,6 +82,13 @@ class PageHeader extends Component {
to="https://lidarr.audio/donate"
size={14}
/>
<IconButton
className={styles.translation}
title={translate('SuggestTranslationChange')}
name={icons.TRANSLATE}
to="https://translate.servarr.com/projects/servarr/lidarr/"
size={24}
/>
<PageHeaderActionsMenuConnector
onKeyboardShortcutsPress={this.onOpenKeyboardShortcutsModal}
/>

@ -64,6 +64,7 @@ import {
faHistory as fasHistory,
faHome as fasHome,
faInfoCircle as fasInfoCircle,
faLanguage as fasLanguage,
faLaptop as fasLaptop,
faLevelUpAlt as fasLevelUpAlt,
faListCheck as fasListCheck,
@ -211,6 +212,7 @@ export const TABLE = fasTable;
export const TAGS = fasTags;
export const TBA = fasQuestionCircle;
export const TEST = fasVial;
export const TRANSLATE = fasLanguage;
export const UNGROUP = farObjectUngroup;
export const UNKNOWN = fasQuestion;
export const UNMONITORED = farBookmark;

@ -911,6 +911,7 @@
"Style": "Style",
"SuccessMyWorkIsDoneNoFilesToRename": "Success! My work is done, no files to rename.",
"SuccessMyWorkIsDoneNoFilesToRetag": "Success! My work is done, no files to retag.",
"SuggestTranslationChange": "Suggest translation change",
"SupportsRssvalueRSSIsNotSupportedWithThisIndexer": "RSS is not supported with this indexer",
"SupportsSearchvalueSearchIsNotSupportedWithThisIndexer": "Search is not supported with this indexer",
"SupportsSearchvalueWillBeUsedWhenAutomaticSearchesArePerformedViaTheUIOrByLidarr": "Will be used when automatic searches are performed via the UI or by Lidarr",

Loading…
Cancel
Save