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
+10 -5
View File
@@ -10,6 +10,7 @@ import PageContent from 'Components/Page/PageContent';
import PageContentBody from 'Components/Page/PageContentBody';
import { icons, kinds } from 'Helpers/Props';
import formatDate from 'Utilities/Date/formatDate';
import translate from 'Utilities/String/translate';
import UpdateChanges from './UpdateChanges';
import styles from './Updates.css';
@@ -48,7 +49,7 @@ class Updates extends Component {
};
return (
<PageContent title="Updates">
<PageContent title={translate('Updates')}>
<PageContentBody>
{
!isPopulated && !hasError &&
@@ -57,7 +58,9 @@ class Updates extends Component {
{
noUpdates &&
<div>No updates are available</div>
<div>
{translate('NoUpdatesAreAvailable')}
</div>
}
{
@@ -161,19 +164,21 @@ class Updates extends Component {
{
!hasChanges &&
<div>Maintenance release</div>
<div>
{translate('MaintenanceRelease')}
</div>
}
{
hasChanges &&
<div className={styles.changes}>
<UpdateChanges
title="New"
title={translate('New')}
changes={update.changes.new}
/>
<UpdateChanges
title="Fixed"
title={translate('Fixed')}
changes={update.changes.fixed}
/>
</div>