Translate TracksPage

This commit is contained in:
Paul Bienkowski 2022-07-24 17:45:10 +02:00 committed by gluap
parent 8b6205ff31
commit 0186183a7b
No known key found for this signature in database
2 changed files with 10 additions and 18 deletions

View file

@ -1,20 +1,11 @@
import React, { useCallback } from "react"; import React, {useCallback} from 'react'
import { connect } from "react-redux"; import {connect} from 'react-redux'
import { import {Button, Message, Item, Header, Loader, Pagination, Icon} from 'semantic-ui-react'
Button, import {useObservable} from 'rxjs-hooks'
Message, import {Link} from 'react-router-dom'
Item, import {of, from, concat} from 'rxjs'
Header, import {map, switchMap, distinctUntilChanged} from 'rxjs/operators'
Loader, import _ from 'lodash'
Pagination,
Icon,
} from "semantic-ui-react";
import { useObservable } from "rxjs-hooks";
import { Link } from "react-router-dom";
import { of, from, concat } from "rxjs";
import { map, switchMap, distinctUntilChanged } from "rxjs/operators";
import _ from "lodash";
import { useTranslation, Trans as Translate } from "react-i18next";
import type { Track } from "types"; import type { Track } from "types";
import { import {
@ -91,7 +82,7 @@ export function NoPublicTracksMessage() {
); );
} }
function maxLength(t: string | null, max: number): string | null { function maxLength(t: string|null, max: number): string|null {
if (t && t.length > max) { if (t && t.length > max) {
return t.substring(0, max) + " ..."; return t.substring(0, max) + " ...";
} else { } else {

View file

@ -53,6 +53,7 @@ LoginButton:
HomePage: HomePage:
mostRecentTrack: Most recent track mostRecentTrack: Most recent track
noPublicTracks: No public tracks yet. <1>Upload the first!</1>
Stats: Stats:
title: Statistics title: Statistics