mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
don't use i18n namespaces
there's no need to keep reloading different parts of the object we already cached
This commit is contained in:
@@ -17,7 +17,7 @@ const ListPlayerControls = withSuspenseMemo<{
|
||||
disabled?: boolean
|
||||
}>(({ listType, style, play, shuffle, disabled }) => {
|
||||
const [downloaded, setDownloaded] = useState(false)
|
||||
const { t } = useTranslation('resources')
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<View style={[styles.controls, style]}>
|
||||
@@ -34,7 +34,7 @@ const ListPlayerControls = withSuspenseMemo<{
|
||||
</Button>
|
||||
</View>
|
||||
<View style={styles.controlsCenter}>
|
||||
<Button title={t(`${listType}.actions.play`)} disabled={disabled} onPress={play} />
|
||||
<Button title={t(`resources.${listType}.actions.play`)} disabled={disabled} onPress={play} />
|
||||
</View>
|
||||
<View style={styles.controlsSide}>
|
||||
<Button disabled={disabled} onPress={shuffle}>
|
||||
|
||||
Reference in New Issue
Block a user