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

View File

@@ -11,6 +11,7 @@ import Scroller from 'Components/Scroller/Scroller';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { scrollDirections } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import SelectBookRow from './SelectBookRow';
import styles from './SelectBookModalContent.css';
@@ -84,7 +85,7 @@ class SelectBookModalContent extends Component {
}
<TextInput
className={styles.filterInput}
placeholder="Filter book"
placeholder={translate('FilterPlaceHolder')}
name="filter"
value={filter}
autoFocus={true}

View File

@@ -5,6 +5,7 @@ import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellCo
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { kinds, sizes } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import styles from './SelectBookRow.css';
function getBookCountKind(monitored, bookFileCount, bookCount) {
@@ -85,7 +86,7 @@ class SelectBookRow extends Component {
key={name}
>
<Label
title={`${totalBookCount} books total. ${bookFileCount} books with files.`}
title={translate('TotalBookCountBooksTotalBookFileCountBooksWithFilesInterp', [totalBookCount, bookFileCount])}
kind={getBookCountKind(monitored, bookFileCount, bookCount)}
size={sizes.MEDIUM}
>