Localization framework

This commit is contained in:
nitsua
2021-04-16 22:01:47 -04:00
committed by ta264
parent 144134446d
commit d87bf5ae63
196 changed files with 3074 additions and 924 deletions
+8 -7
View File
@@ -11,6 +11,7 @@ import TableBody from 'Components/Table/TableBody';
import TableRow from 'Components/Table/TableRow';
import { icons, kinds } from 'Helpers/Props';
import titleCase from 'Utilities/String/titleCase';
import translate from 'Utilities/String/translate';
import styles from './Health.css';
function getInternalLink(source) {
@@ -22,7 +23,7 @@ function getInternalLink(source) {
return (
<IconButton
name={icons.SETTINGS}
title="Settings"
title={translate('Settings')}
to="/settings/indexers"
/>
);
@@ -33,7 +34,7 @@ function getInternalLink(source) {
return (
<IconButton
name={icons.SETTINGS}
title="Settings"
title={translate('Settings')}
to="/settings/downloadclients"
/>
);
@@ -41,7 +42,7 @@ function getInternalLink(source) {
return (
<IconButton
name={icons.AUTHOR_CONTINUING}
title="Author Editor"
title={translate('AuthorEditor')}
to="/authoreditor"
/>
);
@@ -49,7 +50,7 @@ function getInternalLink(source) {
return (
<IconButton
name={icons.UPDATE}
title="Updates"
title={translate('Updates')}
to="/system/updates"
/>
);
@@ -64,7 +65,7 @@ function getTestLink(source, props) {
return (
<SpinnerIconButton
name={icons.TEST}
title="Test All"
title={translate('TestAll')}
isSpinning={props.isTestingAllIndexers}
onPress={props.dispatchTestAllIndexers}
/>
@@ -74,7 +75,7 @@ function getTestLink(source, props) {
return (
<SpinnerIconButton
name={icons.TEST}
title="Test All"
title={translate('TestAll')}
isSpinning={props.isTestingAllDownloadClients}
onPress={props.dispatchTestAllDownloadClients}
/>
@@ -186,7 +187,7 @@ class Health extends Component {
<IconButton
name={icons.WIKI}
to={item.wikiUrl}
title="Read the Wiki for more information"
title={translate('ReadTheWikiForMoreInformation')}
/>
{