mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
i18n: Add missing translations
This commit is contained in:
@@ -73,7 +73,7 @@ function SelectionCard(props) {
|
||||
|
||||
<Row className="space-between-end card-row">
|
||||
<Col className="card-label"><Trans i18nKey={"TYPE"}/></Col>
|
||||
<Col className="text-end">{props.data.CollectionType==='tvshows' ? 'Series' : props.data.CollectionType==='movies'? "Movies" : props.data.CollectionType==='music'? "Music" : 'Mixed'}</Col>
|
||||
<Col className="text-end">{props.data.CollectionType==='tvshows' ? <Trans i18nKey="SERIES" /> : props.data.CollectionType==='movies'? <Trans i18nKey="MOVIES" /> : props.data.CollectionType==='music'? <Trans i18nKey="MUSIC" /> : 'Mixed'}</Col>
|
||||
</Row>
|
||||
|
||||
<Row className="space-between-end card-row">
|
||||
|
||||
@@ -30,11 +30,11 @@ function formatTotalWatchTime(seconds) {
|
||||
let timeString = "";
|
||||
|
||||
if (hours > 0) {
|
||||
timeString += `${hours} ${hours === 1 ? "hr" : "hrs"} `;
|
||||
timeString += `${hours} ${hours === 1 ? i18next.t("UNITS.HOUR").toLowerCase() : i18next.t("UNITS.HOURS").toLowerCase()} `;
|
||||
}
|
||||
|
||||
if (minutes > 0) {
|
||||
timeString += `${minutes} ${minutes === 1 ? "min" : "mins"} `;
|
||||
timeString += `${minutes} ${minutes === 1 ? i18next.t("UNITS.MINUTE").toLowerCase() : i18next.t("UNITS.MINUTES").toLowerCase()} `;
|
||||
}
|
||||
|
||||
if (remainingSeconds > 0) {
|
||||
|
||||
@@ -195,7 +195,7 @@ function LibraryCard(props) {
|
||||
|
||||
<Row className="space-between-end card-row">
|
||||
<Col className="card-label"><Trans i18nKey="LIBRARY_CARD.LAST_PLAYED" /></Col>
|
||||
<Col className="text-end">{props.data.ItemName || 'n/a'}</Col>
|
||||
<Col className="text-end">{props.data.ItemName || `${i18next.t("ERROR_MESSAGES.N/A")}`}</Col>
|
||||
</Row>
|
||||
|
||||
<Row className="space-between-end card-row">
|
||||
|
||||
@@ -12,6 +12,7 @@ import "../../css/width_breakpoint_css.css";
|
||||
import "../../css/radius_breakpoint_css.css";
|
||||
import { Trans } from "react-i18next";
|
||||
import Loading from "../general/loading";
|
||||
import i18next from "i18next";
|
||||
|
||||
function LibraryItems(props) {
|
||||
const [data, setData] = useState();
|
||||
@@ -169,7 +170,7 @@ function LibraryItems(props) {
|
||||
</div>
|
||||
<FormControl
|
||||
type="text"
|
||||
placeholder="Search"
|
||||
placeholder={i18next.t("SEARCH")}
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="ms-md-3 mt-2 mb-2 my-md-3 w-sm-100 w-md-75"
|
||||
|
||||
Reference in New Issue
Block a user