New translated terms
This commit is contained in:
+10
-2
@@ -19,7 +19,8 @@
|
|||||||
"updatedAt": "Últ. Atualização",
|
"updatedAt": "Últ. Atualização",
|
||||||
"bitRate": "Bitrate",
|
"bitRate": "Bitrate",
|
||||||
"discSubtitle": "Sub-título do disco",
|
"discSubtitle": "Sub-título do disco",
|
||||||
"starred": "Favorita"
|
"starred": "Favorita",
|
||||||
|
"comment": "Comentário"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"addToQueue": "Adicionar à fila",
|
"addToQueue": "Adicionar à fila",
|
||||||
@@ -42,7 +43,8 @@
|
|||||||
"genre": "Gênero",
|
"genre": "Gênero",
|
||||||
"compilation": "Coletânea",
|
"compilation": "Coletânea",
|
||||||
"year": "Ano",
|
"year": "Ano",
|
||||||
"updatedAt": "Últ. Atualização"
|
"updatedAt": "Últ. Atualização",
|
||||||
|
"comment": "Comentário"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"playAll": "Tocar",
|
"playAll": "Tocar",
|
||||||
@@ -285,6 +287,12 @@
|
|||||||
"featureRequests": "Solicitar funcionalidade"
|
"featureRequests": "Solicitar funcionalidade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"activity": {
|
||||||
|
"title": "Atividade",
|
||||||
|
"totalScanned": "Total de pastas encontradas",
|
||||||
|
"quickScan": "Scan rápido",
|
||||||
|
"fullScan": "Scan completo"
|
||||||
|
},
|
||||||
"player": {
|
"player": {
|
||||||
"playListsText": "Fila de Execução",
|
"playListsText": "Fila de Execução",
|
||||||
"openText": "Abrir",
|
"openText": "Abrir",
|
||||||
|
|||||||
+10
-2
@@ -19,7 +19,8 @@
|
|||||||
"updatedAt": "Updated at",
|
"updatedAt": "Updated at",
|
||||||
"bitRate": "Bit rate",
|
"bitRate": "Bit rate",
|
||||||
"discSubtitle": "Disc Subtitle",
|
"discSubtitle": "Disc Subtitle",
|
||||||
"starred": "Starred"
|
"starred": "Starred",
|
||||||
|
"comment": "Comment"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"addToQueue": "Play Later",
|
"addToQueue": "Play Later",
|
||||||
@@ -42,7 +43,8 @@
|
|||||||
"genre": "Genre",
|
"genre": "Genre",
|
||||||
"compilation": "Compilation",
|
"compilation": "Compilation",
|
||||||
"year": "Year",
|
"year": "Year",
|
||||||
"updatedAt": "Updated at"
|
"updatedAt": "Updated at",
|
||||||
|
"comment": "Comment"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"playAll": "Play",
|
"playAll": "Play",
|
||||||
@@ -285,6 +287,12 @@
|
|||||||
"featureRequests": "Feature requests"
|
"featureRequests": "Feature requests"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"activity": {
|
||||||
|
"title": "Activity",
|
||||||
|
"totalScanned": "Total Folders Scanned",
|
||||||
|
"quickScan": "Quick Scan",
|
||||||
|
"fullScan": "Full Scan"
|
||||||
|
},
|
||||||
"player": {
|
"player": {
|
||||||
"playListsText": "Play Queue",
|
"playListsText": "Play Queue",
|
||||||
"openText": "Open",
|
"openText": "Open",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useState, useEffect } from 'react'
|
import React, { useState, useEffect } from 'react'
|
||||||
import { useDispatch, useSelector } from 'react-redux'
|
import { useDispatch, useSelector } from 'react-redux'
|
||||||
import { fetchUtils } from 'react-admin'
|
import { fetchUtils, useTranslate } from 'react-admin'
|
||||||
import {
|
import {
|
||||||
Popover,
|
Popover,
|
||||||
Badge,
|
Badge,
|
||||||
@@ -42,6 +42,7 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
|
|
||||||
const ActivityPanel = () => {
|
const ActivityPanel = () => {
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
const translate = useTranslate()
|
||||||
const [anchorEl, setAnchorEl] = useState(null)
|
const [anchorEl, setAnchorEl] = useState(null)
|
||||||
const open = Boolean(anchorEl)
|
const open = Boolean(anchorEl)
|
||||||
const scanStatus = useSelector((state) => state.activity.scanStatus)
|
const scanStatus = useSelector((state) => state.activity.scanStatus)
|
||||||
@@ -66,7 +67,7 @@ const ActivityPanel = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.wrapper}>
|
<div className={classes.wrapper}>
|
||||||
<Tooltip title={'Activity'}>
|
<Tooltip title={translate('activity.title')}>
|
||||||
<IconButton className={classes.button} onClick={handleMenuOpen}>
|
<IconButton className={classes.button} onClick={handleMenuOpen}>
|
||||||
<Badge badgeContent={null} color="secondary">
|
<Badge badgeContent={null} color="secondary">
|
||||||
<FiActivity size={'20'} />
|
<FiActivity size={'20'} />
|
||||||
@@ -94,7 +95,7 @@ const ActivityPanel = () => {
|
|||||||
<CardContent>
|
<CardContent>
|
||||||
<Box display="flex" className={classes.counterStatus}>
|
<Box display="flex" className={classes.counterStatus}>
|
||||||
<Box component="span" flex={2}>
|
<Box component="span" flex={2}>
|
||||||
Total Folders Scanned:
|
{translate('activity.totalScanned')}:
|
||||||
</Box>
|
</Box>
|
||||||
<Box component="span" flex={1}>
|
<Box component="span" flex={1}>
|
||||||
{scanStatus.count}
|
{scanStatus.count}
|
||||||
@@ -103,12 +104,12 @@ const ActivityPanel = () => {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
<Divider />
|
<Divider />
|
||||||
<CardActions>
|
<CardActions>
|
||||||
<Tooltip title={'Quick Scan'}>
|
<Tooltip title={translate('activity.quickScan')}>
|
||||||
<IconButton onClick={triggerScan(false)}>
|
<IconButton onClick={triggerScan(false)}>
|
||||||
<VscSync />
|
<VscSync />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip title={'Full Scan'}>
|
<Tooltip title={translate('activity.fullScan')}>
|
||||||
<IconButton onClick={triggerScan(true)}>
|
<IconButton onClick={triggerScan(true)}>
|
||||||
<GiMagnifyingGlass />
|
<GiMagnifyingGlass />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ UserMenu.propTypes = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UserMenu.defaultProps = {
|
UserMenu.defaultProps = {
|
||||||
label: 'ra.auth.user_menu',
|
label: 'menu.settings',
|
||||||
icon: <AccountCircle />,
|
icon: <AccountCircle />,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user