mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-10 20:49:55 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -9,9 +9,7 @@ export const NowPlayingHeader = () => {
|
||||
return (
|
||||
<PageHeader>
|
||||
<LibraryHeaderBar ignoreMaxWidth>
|
||||
<LibraryHeaderBar.Title>
|
||||
{t('page.sidebar.nowPlaying', { postProcess: 'titleCase' })}
|
||||
</LibraryHeaderBar.Title>
|
||||
<LibraryHeaderBar.Title>{t('page.sidebar.nowPlaying')}</LibraryHeaderBar.Title>
|
||||
</LibraryHeaderBar>
|
||||
</PageHeader>
|
||||
);
|
||||
|
||||
@@ -108,21 +108,21 @@ const QueuePlaybackIcons = ({ tableRef }: { tableRef: RefObject<ItemListHandle |
|
||||
icon="mediaShuffle"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleShuffleQueue}
|
||||
tooltip={{ label: t('player.shuffle', { postProcess: 'sentenceCase' }) }}
|
||||
tooltip={{ label: t('player.shuffle') }}
|
||||
variant="subtle"
|
||||
/>
|
||||
<ActionIcon
|
||||
icon="x"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleClearQueue}
|
||||
tooltip={{ label: t('action.clearQueue', { postProcess: 'sentenceCase' }) }}
|
||||
tooltip={{ label: t('action.clearQueue') }}
|
||||
variant="subtle"
|
||||
/>
|
||||
<ActionIcon
|
||||
icon="goToItem"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleJumpToCurrent}
|
||||
tooltip={{ label: t('action.goToCurrent', { postProcess: 'sentenceCase' }) }}
|
||||
tooltip={{ label: t('action.goToCurrent') }}
|
||||
variant="subtle"
|
||||
/>
|
||||
</>
|
||||
@@ -152,9 +152,7 @@ const QueueRestoreActions = () => {
|
||||
loading={isSavingQueue}
|
||||
onClick={() => handleSaveQueue()}
|
||||
tooltip={{
|
||||
label: t('player.saveQueueToServer', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
label: t('player.saveQueueToServer'),
|
||||
}}
|
||||
variant="subtle"
|
||||
/>
|
||||
@@ -165,9 +163,7 @@ const QueueRestoreActions = () => {
|
||||
loading={Boolean(isFetching)}
|
||||
onClick={handleRestoreQueue}
|
||||
tooltip={{
|
||||
label: t('player.restoreQueueFromServer', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
label: t('player.restoreQueueFromServer'),
|
||||
}}
|
||||
variant="subtle"
|
||||
/>
|
||||
|
||||
@@ -51,7 +51,7 @@ export const PopoverPlayQueue = ({
|
||||
onClick={handleToggle}
|
||||
size="sm"
|
||||
tooltip={{
|
||||
label: t('player.viewQueue', { postProcess: 'titleCase' }),
|
||||
label: t('player.viewQueue'),
|
||||
openDelay: 0,
|
||||
}}
|
||||
variant="subtle"
|
||||
|
||||
@@ -313,7 +313,7 @@ const PanelReorderControls = ({ panelType }: { panelType: 'lyrics' | 'visualizer
|
||||
onClick={handleMoveUp}
|
||||
size="xs"
|
||||
tooltip={{
|
||||
label: t('action.moveUp', { postProcess: 'sentenceCase' }),
|
||||
label: t('action.moveUp'),
|
||||
}}
|
||||
variant="subtle"
|
||||
/>
|
||||
@@ -324,7 +324,7 @@ const PanelReorderControls = ({ panelType }: { panelType: 'lyrics' | 'visualizer
|
||||
onClick={handleMoveDown}
|
||||
size="xs"
|
||||
tooltip={{
|
||||
label: t('action.moveDown', { postProcess: 'sentenceCase' }),
|
||||
label: t('action.moveDown'),
|
||||
}}
|
||||
variant="subtle"
|
||||
/>
|
||||
@@ -334,7 +334,7 @@ const PanelReorderControls = ({ panelType }: { panelType: 'lyrics' | 'visualizer
|
||||
onClick={handleClose}
|
||||
size="xs"
|
||||
tooltip={{
|
||||
label: t('common.close', { postProcess: 'sentenceCase' }),
|
||||
label: t('common.close'),
|
||||
}}
|
||||
variant="subtle"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user