Add Suggest translation change link

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

@ -37,6 +37,22 @@
flex-grow: 1; 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 { .donate {
composes: link from '~Components/Link/Link.css'; composes: link from '~Components/Link/Link.css';
@ -59,7 +75,8 @@
display: flex; display: flex;
} }
.donate { .donate,
.translation {
display: none; display: none;
} }
} }

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

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

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

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

Loading…
Cancel
Save