fix: make similar albums translateable
This commit is contained in:
@@ -52,6 +52,12 @@ module.exports = {
|
|||||||
'react/prop-types': 'off',
|
'react/prop-types': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
'error'
|
'error'
|
||||||
|
],
|
||||||
|
'react/jsx-no-literals': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
ignoreProps: true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
|
|||||||
@@ -60,5 +60,6 @@
|
|||||||
"playing-on": "Playing on",
|
"playing-on": "Playing on",
|
||||||
"local-playback": "Local playback",
|
"local-playback": "Local playback",
|
||||||
"streaming": "Streaming",
|
"streaming": "Streaming",
|
||||||
"total-duration": "Total duration"
|
"total-duration": "Total duration",
|
||||||
|
"similar-albums": "Similar albums"
|
||||||
}
|
}
|
||||||
@@ -60,5 +60,6 @@
|
|||||||
"playing-on": "Speelt af op",
|
"playing-on": "Speelt af op",
|
||||||
"local-playback": "Lokaal afspelen",
|
"local-playback": "Lokaal afspelen",
|
||||||
"streaming": "Streamen",
|
"streaming": "Streamen",
|
||||||
"total-duration": "Totale duur"
|
"total-duration": "Totale duur",
|
||||||
|
"similar-albums": "Vergelijkbare albums"
|
||||||
}
|
}
|
||||||
@@ -58,4 +58,5 @@ export type LocaleKeys = 'play-next'
|
|||||||
| 'playing-on'
|
| 'playing-on'
|
||||||
| 'local-playback'
|
| 'local-playback'
|
||||||
| 'streaming'
|
| 'streaming'
|
||||||
| 'total-duration'
|
| 'total-duration'
|
||||||
|
| 'similar-albums'
|
||||||
@@ -82,7 +82,7 @@ function Downloads() {
|
|||||||
]}
|
]}
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
>
|
>
|
||||||
{t('total-download-size')}: {formatBytes(totalDownloadSize)}
|
{t('total-download-size')}{': '}{formatBytes(totalDownloadSize)}
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
icon={TrashIcon}
|
icon={TrashIcon}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ const Album: React.FC = () => {
|
|||||||
) : null}
|
) : null}
|
||||||
{album?.Similar?.length ? (
|
{album?.Similar?.length ? (
|
||||||
<>
|
<>
|
||||||
<SubHeader>Similar albums</SubHeader>
|
<SubHeader>{t('similar-albums')}</SubHeader>
|
||||||
<ScrollView horizontal style={{ marginLeft: -24, marginRight: -24, marginTop: 8, marginBottom: 36 }} contentContainerStyle={{ paddingHorizontal: 24 }} showsHorizontalScrollIndicator={false}>
|
<ScrollView horizontal style={{ marginLeft: -24, marginRight: -24, marginTop: 8, marginBottom: 36 }} contentContainerStyle={{ paddingHorizontal: 24 }} showsHorizontalScrollIndicator={false}>
|
||||||
{album.Similar.map((id) => (
|
{album.Similar.map((id) => (
|
||||||
<SimilarAlbum id={id} key={id} />
|
<SimilarAlbum id={id} key={id} />
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const TrackListView: React.FC<TrackListViewProps> = ({
|
|||||||
</TrackContainer>
|
</TrackContainer>
|
||||||
</TouchableHandler>
|
</TouchableHandler>
|
||||||
)}
|
)}
|
||||||
<Text style={{ paddingTop: 24, paddingBottom: 12, textAlign: 'center', opacity: 0.5 }}>{t('total-duration')}: {ticksToDuration(totalDuration)}</Text>
|
<Text style={{ paddingTop: 24, paddingBottom: 12, textAlign: 'center', opacity: 0.5 }}>{t('total-duration')}{': '}{ticksToDuration(totalDuration)}</Text>
|
||||||
<WrappableButtonRow style={{ marginTop: 24 }}>
|
<WrappableButtonRow style={{ marginTop: 24 }}>
|
||||||
<WrappableButton
|
<WrappableButton
|
||||||
icon={CloudDownArrow}
|
icon={CloudDownArrow}
|
||||||
|
|||||||
Reference in New Issue
Block a user