From 05e4b464699a61286d359f71673ee0fe11c8888a Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Thu, 21 Apr 2022 11:16:28 +0900 Subject: [PATCH] fix context menu i18n & view actions --- app/components/ContextMenu.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/ContextMenu.tsx b/app/components/ContextMenu.tsx index c10e557..17dc2d8 100644 --- a/app/components/ContextMenu.tsx +++ b/app/components/ContextMenu.tsx @@ -169,7 +169,7 @@ const OptionStar = withSuspenseMemo<{ return ( } - text={(query.data ? t('unstar') : t('context.actions.star')) + (text ? ` ${text}` : '')} + text={(query.data ? t('context.actions.unstar') : t('context.actions.star')) + (text ? ` ${text}` : '')} onSelect={() => toggle.mutate()} /> ) @@ -191,8 +191,8 @@ const OptionViewArtist = withSuspenseMemo<{ IconComponent={IconFA} name="microphone" size={26} - text={t('view')} - onSelect={() => navigation.navigate('resources.artist.actions.artist', { id: artistId, title: artist })} + text={t('resources.artist.actions.view')} + onSelect={() => navigation.navigate('artist', { id: artistId, title: artist })} /> ) }) @@ -213,8 +213,8 @@ const OptionViewAlbum = withSuspenseMemo<{ IconComponent={IconFA5} name="compact-disc" size={26} - text={t('view')} - onSelect={() => navigation.navigate('resources.album.actions.album', { id: albumId, title: album })} + text={t('resources.album.actions.view')} + onSelect={() => navigation.navigate('album', { id: albumId, title: album })} /> ) })